MatrixAppTests class final

The tests that a matrix adds to its apps, and the roles whose contract they must check with every provider.

Constructors

MatrixAppTests(List<MatrixAppTest> tests, {Set<Role<Object>> testedRoles = const {}})
Creates the tests of the apps, which must check the contract of each of testedRoles.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
testedRoles → Set<Role<Object>>
The roles whose contract some of the tests must check with every provider of each, such as the router role (see MatrixAppTest.roles).
final
tests → List<MatrixAppTest>
The tests of the apps.
final

Methods

modeProblems(List<MatrixApp> apps) → List<String>
The problems of the tests that read what says how the matrix generates an app of apps, the apps of a matrix, rather than what the app is: its name, its MatrixApp.roleOptions or its MatrixApp.modes. Each problem tells which of them a test read, what the test would do otherwise without it, and in which apps: apply to one of the two apps only, fill other values, generate other files or fail. The other app has another name, no role options or no modes, and the same modules and the same data and choices of its roles (MatrixApp.hook).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
roleProblems(List<SmfModule> modules, List<MatrixApp> apps) → List<String>
The problems of the tests of roles in the matrix of modules, whose apps are apps: for each role of the tests and of testedRoles, and each module that provides it and is in apps, a test of the role that applies to none of the apps of the module, or that selects its apps, takes its values or generates its files by the id of the module, and no test of a role of testedRoles at all.
toString() → String
A string representation of this object.
inherited

Operators

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