only one more piece missing
This commit is contained in:
parent
c848397c8b
commit
299acded8e
@ -227,11 +227,12 @@ where
|
|||||||
let attr = attributes?;
|
let attr = attributes?;
|
||||||
|
|
||||||
if attr.is_file() {
|
if attr.is_file() {
|
||||||
println!("Load file {:?}", &path);
|
println!("Loading file {:?}", &path);
|
||||||
let input = std::fs::read(path)?;
|
let input = std::fs::read(path)?;
|
||||||
let input = BytesInput::new(input);
|
let input = BytesInput::new(input);
|
||||||
//let fitness = self.evaluate_input(&input, engine.executor_mut())?;
|
let input = do_whatever_magic_function(input);
|
||||||
//self.add_if_interesting(corpus, input, fitness)?
|
let fitness = self.evaluate_input(&input, engine.executor_mut())?;
|
||||||
|
self.add_if_interesting(corpus, input, fitness)?;
|
||||||
} else if attr.is_dir() {
|
} else if attr.is_dir() {
|
||||||
self.load_from_directory(corpus, generator, engine, manager, &path)?;
|
self.load_from_directory(corpus, generator, engine, manager, &path)?;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user