RunnerTestEnvironment

constructor(projectCache: ProjectCache, logger: ReportingLogger, ruleFilter: RuleFilter, settings: (RunnerTestEnvironment) -> ModuleCheckSettings, codeGeneratorBindings: (ModuleCheckSettings) -> List<CodeGeneratorBinding>, rules: (ModuleCheckSettings, RuleFilter) -> List<ModuleCheckRule<*>>, findingFactory: (List<ModuleCheckRule<*>>) -> FindingFactory<out Finding>, names: List<String>, testLocation: TestLocation)(source)

Parameters

settings

A function to generate ModuleCheckSettings.

codeGeneratorBindings

A function to generate a list of CodeGeneratorBinding.

rules

A function to generate a list of ModuleCheckRule.

findingFactory

A function to generate a FindingFactory.

names

Array of variant names for the test.

testLocation

details about the actual test function, so that we can get the test name. This must be grabbed as soon as possible, since default functions, inline functions, sequences, and iterators all redirect things and have a chance of hiding the original calling function completely.