mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-07-26 07:58:14 +00:00
fix fuzz targets
This commit is contained in:
@@ -2,13 +2,14 @@
|
|||||||
|
|
||||||
use garage_fuzz::check_crdt_laws;
|
use garage_fuzz::check_crdt_laws;
|
||||||
use garage_model::admin_token_table::{AdminApiToken, AdminApiTokenParams, AdminApiTokenScope};
|
use garage_model::admin_token_table::{AdminApiToken, AdminApiTokenParams, AdminApiTokenScope};
|
||||||
|
use garage_model::permission::ExpirationTime;
|
||||||
use garage_util::crdt;
|
use garage_util::crdt;
|
||||||
use libfuzzer_sys::fuzz_target;
|
use libfuzzer_sys::fuzz_target;
|
||||||
|
|
||||||
type Input = (
|
type Input = (
|
||||||
bool,
|
bool,
|
||||||
crdt::Lww<String>,
|
crdt::Lww<String>,
|
||||||
crdt::Lww<Option<u64>>,
|
crdt::Lww<crdt::MergingOption<ExpirationTime>>,
|
||||||
crdt::Lww<AdminApiTokenScope>,
|
crdt::Lww<AdminApiTokenScope>,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use garage_fuzz::check_crdt_laws;
|
use garage_fuzz::check_crdt_laws;
|
||||||
use garage_model::key_table::{Key, KeyParams};
|
use garage_model::key_table::{Key, KeyParams};
|
||||||
use garage_model::permission::BucketKeyPerm;
|
use garage_model::permission::{BucketKeyPerm, ExpirationTime};
|
||||||
use garage_util::crdt;
|
use garage_util::crdt;
|
||||||
use garage_util::data::Uuid;
|
use garage_util::data::Uuid;
|
||||||
use libfuzzer_sys::fuzz_target;
|
use libfuzzer_sys::fuzz_target;
|
||||||
@@ -10,10 +10,10 @@ use libfuzzer_sys::fuzz_target;
|
|||||||
type Input = (
|
type Input = (
|
||||||
bool,
|
bool,
|
||||||
crdt::Lww<String>,
|
crdt::Lww<String>,
|
||||||
crdt::Lww<Option<u64>>,
|
crdt::Lww<crdt::MergingOption<ExpirationTime>>,
|
||||||
crdt::Lww<bool>,
|
crdt::Lww<bool>,
|
||||||
crdt::Map<Uuid, BucketKeyPerm>,
|
crdt::Map<Uuid, BucketKeyPerm>,
|
||||||
crdt::LwwMap<String, Option<Uuid>>,
|
crdt::LwwMap<String, crdt::CancelingOption<Uuid>>,
|
||||||
);
|
);
|
||||||
|
|
||||||
fn make(input: Input) -> Key {
|
fn make(input: Input) -> Key {
|
||||||
|
|||||||
Reference in New Issue
Block a user