event_db_tester

Last updated:

0 purchases

event_db_tester Image
event_db_tester Images
Add to Cart

Description:

event db tester

Event Bloc Tester #
Features #
This package provides a utilty method genericModelTest
Usage #
Please see the test case and example for example use cases.
void main() {
group('Models', () {
group('copy', () {
genericModelTest(models: modelTestCases);
});
});
}

final modelTestCases = {
'Example': () => Tuple2(
ExampleModel()
..first = 'First'
..second = 'Second',
ExampleModel.new,
),
'Fail': () => Tuple2(
FailModel()
..first = 'Fail'
..second = 'Terrible',
FailModel.new,
)
};
copied to clipboard
Simply create a map with the test name being the key and the value containing the model you want to test.
Additional information #
You can see this package in use in the following projects:

VHCSite

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.