Class QaCorpusLoader

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

final class QaCorpusLoader extends Object
Loads Q&A example sources and file-targeted mutation metadata from the classpath. Used by FuzzRunner to feed Strand 3 (Q&A examples) and Strand 4 (targeted mutations).
  • Method Details

    • loadQaExampleSources

      static List<NamedSource> loadQaExampleSources()
      Load all qaExample sources from the manifest as raw NamedSources. These are loaded once at FuzzRunner construction and shared across all workers.
    • loadResourceAsString

      static String loadResourceAsString(String resourcePath)
      Load a classpath resource as a UTF-8 string, returning null if absent or unreadable.
    • loadFileTargetedMutations

      static List<QaCorpusLoader.FileTargetedMutations> loadFileTargetedMutations(List<NamedSource> qaExampleSources)
      Load targeted mutations by joining Q&A typicalErrors with raw source strings.