Use collection expansion to add frame info (#1441)

Expand a map with the frame info into the full message with `...`. This
keeps the structure more clear and makes it obvious that no other side
effects happen.

Refactor the method finding the frame info. Use `firstWhereOrNull` over
a for loop to find the frame matching the suite path. Separate out two
returns to make it clear that there are always `null` values for some
keys in the map, but not others.
1 file changed
tree: 4512e9f7bbfc95e8c9ef5c2b7583e9325650ea06
  1. .github/
  2. .gitignore
  3. CONTRIBUTING.md
  4. README.md
  5. analysis_options.yaml
  6. mono_repo.yaml
  7. pkgs/
  8. tool/
README.md

Test Mono Repository

This repository contains packages for writing and running Dart tests.

test

A full featured packaged for writing and running Dart tests on various platforms, e.g. VM, Chrome, Node etc.

test_api

A minimal package for writing tests. This package is used by package:test and package:test_core.

test_core

A minimal package for writing and running tests. It also contains extensions for implementing a custom test runner. This package is used by package:test.