CorpusCase constructor

const CorpusCase({
  1. required String id,
  2. required CorpusCategory category,
  3. required Standard standard,
  4. required FutureOr<SemanticsSnapshot> build(),
  5. List<ExpectedFinding> expected = const [],
  6. 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,
});