MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / sync_quiet_round

Method sync_quiet_round

src/fuzzer.rs:50–58  ·  view source on GitHub ↗
(&mut self, content: &str)

Source from the content-addressed store, hash-verified

48 }
49
50 fn sync_quiet_round(&mut self, content: &str) -> Result<()> {
51 if let Some(idx) = content.find("[Mutate Loop]: loop:") {
52 let mut de = Deserializer::from_input(&content[idx..]);
53 de.consume_token_until("quiet_round:")?;
54 let quiet_round = de.parse_number::<usize>()?;
55 self.quiet_round = quiet_round;
56 }
57 Ok(())
58 }
59
60 // When the execution stopped or crashed by internal's bugs, sync from the previous state.
61 pub fn sync_from_previous_state(&mut self, logger: &mut ProgramLogger) -> Result<()> {

Callers 1

Calls 1

consume_token_untilMethod · 0.80

Tested by

no test coverage detected