Skip to main content

check_suite_fixtures

Function check_suite_fixtures 

Source
pub fn check_suite_fixtures(
    suite: &SuiteDecl,
    taken: &HashSet<String>,
    errors: &mut Vec<CompileError>,
)
Expand description

The name rules and the unused warning for one suite’s fixtures.

taken is every value name in the suite’s case scope (its view’s, with the target’s services and agents; see test_suites::bound_value_names): a fixture of the same name is bynk.resolve.name_conflict, as an embed’s is. A repeated fixture name is bynk.fixture.duplicate, and a name a helper fn of the suite declares is the helper’s bynk.suite.fn_name_clash. A fixture no case, property, helper, stub or env entry mentions is bynk.fixture.unused, a warning.