Class UserTestGenerator

java.lang.Object
org.ek9lang.compiler.fuzz.UserTestGenerator

public final class UserTestGenerator extends Object
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.

  • 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 symbols
      candidateCount - maximum number of candidates to generate
      random - random source for value selection
      Returns:
      list of test candidates