The same complex code is repeated in several tests to set a given list of variables to IGNORE. Capture this as a function in utils/set_ignore.dart and call setIgnore(vars) from the test script.
Why
So that the test scripts are a lot simpler and the complexity is in support functions, making the tests a lot easier to review and avoiding a significant amount of shared code.
Description
The same complex code is repeated in several tests to set a given list of variables to IGNORE. Capture this as a function in utils/set_ignore.dart and call setIgnore(vars) from the test script.
Why
So that the test scripts are a lot simpler and the complexity is in support functions, making the tests a lot easier to review and avoiding a significant amount of shared code.