Class EdgeValuePool

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

public final class EdgeValuePool extends Object
Provides type-aware edge-case value pools for EK9 built-in types. Used by user-facing fuzz test generation to exercise boundary conditions, empty/unset states, and extreme values for each type.
  • Constructor Details

    • EdgeValuePool

      public EdgeValuePool()
  • Method Details

    • getEdgeValues

      public List<String> getEdgeValues(String typeName)
      Get all edge-case values for a given type name.
      Parameters:
      typeName - the EK9 type name
      Returns:
      list of EK9 literal strings, or a default list if type not recognized
    • getRandomEdgeValue

      public String getRandomEdgeValue(String typeName, Random random)
      Get a random edge-case value for a given type name.
      Parameters:
      typeName - the EK9 type name
      random - the random source
      Returns:
      an EK9 literal string
    • hasEdgeValues

      public boolean hasEdgeValues(String typeName)
      Check if edge values are available for a given type.
      Parameters:
      typeName - the EK9 type name
      Returns:
      true if the type has defined edge values