Class UserTestGenerator
java.lang.Object
org.ek9lang.compiler.fuzz.UserTestGenerator
Mode 1: Test Generation.
Given a harvest result from
SymbolHarvester, generates candidate @Test
function source strings that exercise edge cases, boundary values, and
unusual-but-valid inputs for each testable surface.
Each candidate is a complete @Test function body. The orchestrator
(UserFuzzRunner) wraps these in a proper module structure,
compile-checks each, and outputs survivors.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA generated test candidate with its source and a descriptive name. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate(SymbolHarvester.HarvestResult harvest, int candidateCount, Random random) Generate test candidates for all testable surfaces in the harvest result.
-
Constructor Details
-
UserTestGenerator
public UserTestGenerator()
-
-
Method Details
-
generate
public List<UserTestGenerator.TestCandidate> generate(SymbolHarvester.HarvestResult harvest, int candidateCount, Random random) Generate test candidates for all testable surfaces in the harvest result.- Parameters:
harvest- the harvested symbolscandidateCount- maximum number of candidates to generaterandom- random source for value selection- Returns:
- list of test candidates
-