Package org.ek9lang.compiler.fuzz
package org.ek9lang.compiler.fuzz
-
ClassDescriptionATN-based random EK9 program generator.A generated function's signature, used for constructing valid call sites.A method's signature and access info, captured for call-site generation.A single parameter: name and type.A generated type with its methods, used for constructing valid call sites.Generates EK9 source files targeting untriggered error codes (blind spots).Generates call-chain test files with user-defined types and functions/methods that share rich parameter signatures.Handles the compile-check-classify pipeline for fuzz-generated sources.Result of a compilation: duplicate info plus the deepest phase reached.Information about a duplicate variable detected during compilation (E50050).Result of a quick parse: whether the source parsed and the error listener with any errors.Generates control flow constructs (if/switch/for/while/do-while/try/stream) for fuzzing.Provides type-aware edge-case value pools for EK9 built-in types.Generates enriched control flow constructs for template enrichment: if/else, guards, switch, for/while loops, try-catch, and enriched statements.Generates a rich HTML dashboard for fuzzer statistics.Produces JSON output for fuzz testing results.Output format for fuzz testing results.Immutable snapshot of fuzz statistics at a point in time.Lightweight time-series point for error coverage convergence analysis.Strand dispatch weight snapshot for adaptive weight timeline visualization.Handles periodic status output and final report formatting for the fuzz generator.Orchestrates the fuzz testing pipeline: generate, parse gate, compile, record statistics.Thread-safe statistics collector for the grammar-based fuzz generator.Records when a strand first discovers an error code.Shared mutable state for all AtnBasedGenerator helpers.Named generation policy that biases construct selection and exploration depth.Result of generating a program, including the source files, constructs, control flow types used, and parameter counts recorded.Harvested field name and type from a compiled template.Harvested function signature from a compiled template.Harvested method signature from a compiled template.All harvested info from a single qaExample template.Harvested type information from a compiled template.Generates method and operator declarations for fuzzing.Writes diagnostic files for Strand 4 (targeted mutation) mismatches — cases where expected error codes don't match actual compiler output.Defines the mutation categories for user-facing mutation testing.A named source file with its filename and generated content.Generates override method stubs for child classes derived from harvested parent methods.Loads Q&A example sources and file-targeted mutation metadata from the classpath.A Q&A file paired with its original source, the typical-error mutations to apply, and any companion sources needed for multi-file Q&A compilation.Generates HTTP service declarations for fuzzing.Generates minimal, focused source files targeting specific compiler error codes.Generates statements, expressions, call-sites, and type-usage patterns for fuzzing.Harvests testable surfaces (public constructors, methods, operators) from a compiled EK9 source file.Result of harvesting: module name, source text, all harvested types and functions.Strand 5: Template Enrichment.Result of enrichment generation: the sources to compile, template identity, and metadata.Strand 3: Template Mutation.Result of a mutation: the mutated source and a label describing the mutation type.Strand 2: Compiler-Aware Injection.Result of probe generation: the sources to compile and the template identity for tracking.Orchestrates user-facing fuzz operations: test generation and mutation testing.Result of a user fuzz operation.Mode 2: Mutation Testing.A mutation candidate: the mutated source with metadata.Mode 1: Test Generation.A generated test candidate with its source and a descriptive name.