dart-sdk/pkg/expect/pubspec.yaml
Sam Rawlins d5bd015cac [expect] Replace @alwaysThrows with Never
Actually, for `Expect.fail`, the return type is kept as `void`, as
changing this to `Never` would apparently change a lot of static
analysis of language and co19 tests. It seems the `@alwaysThrows`
annotation is no longer (or was never) relied upon for static
analysis (usually around dead code analysis).

Bug: https://github.com/dart-lang/sdk/issues/49583
Change-Id: I6d9daaa1d290ab0322a529faaf9574fe83b9cd25
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279742
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
2023-01-25 23:02:27 +00:00

20 lines
627 B
YAML

name: expect
# This package is not intended for consumption on pub.dev. DO NOT publish.
publish_to: none
description: >-
Expect is used for tests that do not want to make use of the
Dart unit test library - for example, the core language tests.
Third parties are discouraged from using this, and should use
the expect() function in the unit test library instead for
test assertions.
environment:
sdk: '>=2.12.0 <3.0.0'
# Use 'any' constraints here; we get our versions from the DEPS file.
dependencies:
smith: any
# Use 'any' constraints here; we get our versions from the DEPS file.
dev_dependencies:
lints: any