Enum Class FuzzOutputFormat

java.lang.Object
java.lang.Enum<FuzzOutputFormat>
org.ek9lang.compiler.fuzz.FuzzOutputFormat
All Implemented Interfaces:
Serializable, Comparable<FuzzOutputFormat>, Constable

public enum FuzzOutputFormat extends Enum<FuzzOutputFormat>
Output format for fuzz testing results. Follows the EK9 pattern of numbered suffixes on the action flag itself (-fuzz0, -fuzz1, -fuzz2, -fuzz6), mirroring the test format convention (-t0, -t1, -t2, -t6) but scoped to the fuzz action.
  • Enum Constant Details

    • TERSE

      public static final FuzzOutputFormat TERSE
      Terse output - one-line CI pass/fail summary. Format: "PASS: 0 crashes, 42/303 errors, 500 programs in 1m 0s" Use case: CI pass/fail gate.
    • HUMAN

      public static final FuzzOutputFormat HUMAN
      Human-readable output with visual formatting. Full report with histograms and statistics to stdout. Use case: Developer at terminal (default).
    • JSON

      public static final FuzzOutputFormat JSON
      JSON structured output for programmatic consumption. Produces fuzz-report.json (final summary) and fuzz-snapshots.jsonl (time-series). Use case: CD pipeline, scripts, AI.
    • HTML

      public static final FuzzOutputFormat HTML
      HTML mini-site dashboard. Generates fuzz-report/index.html with charts and interactive error code search. Use case: Browser-based gap analysis.
  • Method Details

    • values

      public static FuzzOutputFormat[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FuzzOutputFormat valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • matches

      public boolean matches(String flag)
      Check if this format matches the given command line flag.
    • fromFlag

      public static FuzzOutputFormat fromFlag(String flag)
      Parse a command line flag to determine the fuzz output format.
      Parameters:
      flag - The flag to parse (e.g., "-fuzz", "-fuzz0", "-fuzz2", "-fuzz6")
      Returns:
      The matching format, or HUMAN as default
    • getPrimaryFlag

      public String getPrimaryFlag()
      Get the primary flag for this format.