generatedFiles property

Map<String, String> Function(MatrixApp app, String packageName)? generatedFiles
final

The files that the matrix generates for the tests in an app of the matrix, next to the files of directory, or null if they need none: the text of each by its path in the app, such as integration_test/di_role/registered_services.dart, for the app and the name of its package, which the imports of the files of the app take, as package:<name>/.... The matrix writes them as they are, with no placeholder filled.

A test of a role needs to know what the modules of an app give the role, such as the services that they register in the DI container, and the files of directory, the same in every app, cannot say it. The function writes it from the data of the roles of the app (MatrixApp.hook), such as the registrations of diRole.graphOf(diRole.hookInput(app.hook!)), and the files of directory import what it writes. So it takes what it needs of the modules of the app from their roles, as values do.

Implementation

final Map<String, String> Function(MatrixApp app, String packageName)?
    generatedFiles;