Skip to content

Commit

Permalink
fuzz: Address TODO in fuzz_block_eval.
Browse files Browse the repository at this point in the history
I'm not sure if this is really useful at all, but it’s one less TODO.
  • Loading branch information
kpreid committed Jul 24, 2024
1 parent f7af19c commit 2fbc04f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fuzz/fuzz_targets/fuzz_block_eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use libfuzzer_sys::fuzz_target;

extern crate all_is_cubes;
use all_is_cubes::block::Block;
use all_is_cubes::universe::{self, VisitHandles as _};

fuzz_target!(|block: Block| {
// TODO: The `Block` will have pending `Handle`s (not inserted in a Universe).
Expand All @@ -22,6 +23,6 @@ fuzz_target!(|block: Block| {
}

// Exercise visit_handles(), because it is a recursive operation on the block + modifiers.
// TODO: To do this we need a handy visitor, but I think it should be simplified...
// block.visit_handles(visitor);
// Unfortunately there's not much we can predict about it.
block.visit_handles(&mut |_: &dyn universe::ErasedHandle| {});
});

0 comments on commit 2fbc04f

Please sign in to comment.