MatrixFailingApp class final

An app whose tests must fail, and how: of the apps with every module of the registry modules, one for each combination of the providers of the roles that take one, the one with the providers, such as an app with a provider of a role that has a known bug and the modules that the tests of the role need, whose tests of the role must fail as failures expect, and whose other tests must pass; see runFailingApps.

Being an app with every module of its registry, it gets the tests that a matrix runs only in such apps too (MatrixApp.everyModuleWith).

Constructors

MatrixFailingApp(String name, {required List<SmfModule> modules, required List<MatrixExpectedFailure> failures, List<ModuleId> providers = const [], Map<String, String?> roleOptions = const {}})
Creates the app name with every module of modules and providers, generated with roleOptions, whose tests must fail as failures expect.
const

Properties

failures → List<MatrixExpectedFailure>
The tests of the app that must fail, each with the reason of its first failure.
final
hashCode → int
The hash code for this object.
no setterinherited
modules → List<SmfModule>
The registry of the app, which smf create generates it from: the modules of the app, and the other providers of its roles that its modules need in a registry, such as those that a module has variants for.
final
name → String
The name of the app, such as that of the provider with a bug.
final
providers → List<ModuleId>
The providers that the app has of the roles that take one and have several in modules, such as the state manager of the variant of a feature; among other modules, as any module of the app may be named.
final
roleOptions → Map<String, String?>
The values of role options by name that the app is generated with, such as another value of a mode option of a role (see RoleOption.mode), for a provider whose bug shows only in an app with that value; none by default, so that each role chooses as it does for an app that got no option.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

check() → Future<({MatrixApp? app, List<String> problems})>
The app of the matrix, the app with every module of modules that has the providers, as the contract harness builds and renders it with the roleOptions, with the data and roles of its case (MatrixApp.hook), under name; or null and the problems when not one app with every module has them: the errors of the cases of the apps that the harness found errors in, and the number of the apps that have them.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited