pub struct StateMachineConfig {
pub seed_numbers: Vec<Number>,
pub seed_strings: Vec<String>,
pub mine_text: bool,
pub dump_corpus: bool,
pub log_corpus_deltas: bool,
pub lenient_sourcing: bool,
pub coverage_allowlist: Option<Vec<String>>,
pub coverage_blocklist: Option<Vec<String>>,
pub coverage_rules: Vec<CoverageRule>,
}Expand description
Configuration for state-machine generator behavior.
State-machine generation is always used for sequence runs; there is no legacy mode.
Fields§
§seed_numbers: Vec<Number>Seed numbers added to the corpus before generation.
seed_strings: Vec<String>Seed strings added to the corpus before generation.
mine_text: boolMine whitespace-delimited text tokens into the corpus.
dump_corpus: boolDump the final state-machine corpus after the run completes.
log_corpus_deltas: boolLog newly mined corpus values after each tool response.
lenient_sourcing: boolAllow schema-based generation when corpus lacks required values.
coverage_allowlist: Option<Vec<String>>Optional allowlist for coverage warnings and validation.
coverage_blocklist: Option<Vec<String>>Optional blocklist for coverage warnings and validation.
coverage_rules: Vec<CoverageRule>Coverage validation rules applied after state-machine runs.
Implementations§
Source§impl StateMachineConfig
impl StateMachineConfig
Sourcepub fn with_seed_numbers(self, seed_numbers: Vec<Number>) -> Self
pub fn with_seed_numbers(self, seed_numbers: Vec<Number>) -> Self
Sets the seed numbers for the state-machine corpus.
Sourcepub fn with_seed_strings(self, seed_strings: Vec<String>) -> Self
pub fn with_seed_strings(self, seed_strings: Vec<String>) -> Self
Sets the seed strings for the state-machine corpus.
Sourcepub fn with_mine_text(self, mine_text: bool) -> Self
pub fn with_mine_text(self, mine_text: bool) -> Self
Enables mining of whitespace-delimited text tokens into the corpus.
Sourcepub fn with_dump_corpus(self, dump_corpus: bool) -> Self
pub fn with_dump_corpus(self, dump_corpus: bool) -> Self
Enables dumping the final state-machine corpus after the run completes.
Sourcepub fn with_log_corpus_deltas(self, log_corpus_deltas: bool) -> Self
pub fn with_log_corpus_deltas(self, log_corpus_deltas: bool) -> Self
Enables logging newly mined corpus values after each tool response.
Sourcepub fn with_lenient_sourcing(self, lenient_sourcing: bool) -> Self
pub fn with_lenient_sourcing(self, lenient_sourcing: bool) -> Self
Enables schema-based generation when corpus lacks required values.
Sourcepub fn with_coverage_allowlist(self, coverage_allowlist: Vec<String>) -> Self
pub fn with_coverage_allowlist(self, coverage_allowlist: Vec<String>) -> Self
Sets the coverage allowlist for state-machine runs.
Sourcepub fn with_coverage_blocklist(self, coverage_blocklist: Vec<String>) -> Self
pub fn with_coverage_blocklist(self, coverage_blocklist: Vec<String>) -> Self
Sets the coverage blocklist for state-machine runs.
Sourcepub fn with_coverage_rules(self, coverage_rules: Vec<CoverageRule>) -> Self
pub fn with_coverage_rules(self, coverage_rules: Vec<CoverageRule>) -> Self
Sets the coverage validation rules for state-machine runs.
Trait Implementations§
Source§impl Clone for StateMachineConfig
impl Clone for StateMachineConfig
Source§fn clone(&self) -> StateMachineConfig
fn clone(&self) -> StateMachineConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more