CorpusCase constructor
const
CorpusCase({
- required String id,
- required CorpusCategory category,
- required Standard standard,
- required FutureOr<
SemanticsSnapshot> build(), - List<
ExpectedFinding> expected = const [], - String? ruleUnderTest,
Creates a CorpusCase.
ruleUnderTest must be set for CorpusCategory.positive,
CorpusCategory.clean and CorpusCategory.adversarial cases, and left
null for CorpusCategory.realWorld.
Implementation
const CorpusCase({
required this.id,
required this.category,
required this.standard,
required this.build,
this.expected = const [],
this.ruleUnderTest,
});