RunnerTestEnvironmentParams

data class RunnerTestEnvironmentParams(val projectCache: ProjectCache, val logger: ReportingLogger, val ruleFilter: RuleFilter, val settings: (RunnerTestEnvironment) -> ModuleCheckSettings, val codeGeneratorBindings: (ModuleCheckSettings) -> List<CodeGeneratorBinding>, val rules: (ModuleCheckSettings, RuleFilter) -> List<ModuleCheckRule<*>>, val findingFactory: (List<ModuleCheckRule<*>>) -> FindingFactory<out Finding>) : TestEnvironmentParams(source)

Defines a test environment which uses a ModuleCheckRunner.

Constructors

Link copied to clipboard
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>)

Properties

Link copied to clipboard
Link copied to clipboard

A function to generate a FindingFactory.

Link copied to clipboard

A ReportingLogger for logging reporting events.

Link copied to clipboard
Link copied to clipboard

A RuleFilter for filtering out unwanted rules.

Link copied to clipboard

A function to generate a list of ModuleCheckRule.

Link copied to clipboard