Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Changochen committed Nov 16, 2023
1 parent d6ce09b commit 176aa89
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/feedback/bitmap_collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ impl FeedbackCollector for BitmapCollector {
}));
}

self.interesting_test_cases
.extend(interesting_test_cases);
self.interesting_test_cases.extend(interesting_test_cases);
self.crash_test_cases.extend(crash_test_cases);
}

Expand Down
5 changes: 1 addition & 4 deletions src/frontend/load_balance_frontend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,7 @@ impl<
{
let mut all_senders = self.output_senders.clone();
for (sender, fuzzer_io_type) in less_contention_senders.into_iter() {
all_senders
.entry(fuzzer_io_type)
.or_default()
.push(sender);
all_senders.entry(fuzzer_io_type).or_default().push(sender);
}
let all_receivers = inner_receivers
.into_iter()
Expand Down
6 changes: 4 additions & 2 deletions src/mutator/afl_mutator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ macro_rules! arith_val_mutator_impl {
impl BitFlipMutator {
pub fn new() -> Self {
// TODO: There are lots of duplicated mutated inputs.
let mutator_funcs = [Self::byte_change as fn(&TestCase, &mut MutationRng) -> Option<TestCase>,
let mutator_funcs = [
Self::byte_change as fn(&TestCase, &mut MutationRng) -> Option<TestCase>,
//Self::bit_flip,
Self::byte_insert, // 2
Self::byte_delete,
Expand All @@ -235,7 +236,8 @@ impl BitFlipMutator {
Self::afl_9_add_dword_arith_val,
Self::afl_11_12_remove_bytes,
Self::afl_13_clone_or_insert_bytes,
Self::afl_14_overwrite_bytes]
Self::afl_14_overwrite_bytes,
]
.iter()
.enumerate()
.map(|(idx, &func)| MutatorFunc::new(idx as u32, func, DEFAULT_SCORE))
Expand Down
6 changes: 4 additions & 2 deletions src/queue/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ mod tests {
.await
.unwrap();

let test_cases_str = ["select 1;",
let test_cases_str = [
"select 1;",
"create table v(c); select c from v;",
"select printf(a, b);"];
"select printf(a, b);",
];

let request = tonic::Request::new(TestCases {
test_cases: test_cases_str
Expand Down

0 comments on commit 176aa89

Please sign in to comment.