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

Method update_quality

src/program/mod.rs:197–206  ·  view source on GitHub ↗
(
        &mut self,
        unique_branches: HashMap<String, Vec<Branch>>,
        deopt: &Deopt,
    )

Source from the content-addressed store, hash-verified

195 }
196
197 pub fn update_quality(
198 &mut self,
199 unique_branches: HashMap<String, Vec<Branch>>,
200 deopt: &Deopt,
201 ) -> Result<()> {
202 let mut quality = self.compute_quality(deopt)?;
203 quality.set_unique_branches(unique_branches);
204 self.set_quality(quality.clone());
205 Ok(())
206 }
207
208 // Update the unique branches according the new coverage
209 pub fn update_unique_branches(&mut self, coming_branches: &HashMap<String, Vec<Branch>>) {

Callers 1

fuzz_loopMethod · 0.45

Calls 3

compute_qualityMethod · 0.80
set_unique_branchesMethod · 0.80
set_qualityMethod · 0.80

Tested by

no test coverage detected