implement necessary traits on data structures such that they can be compared for mock input #22
Open
Description
For example,
let get_latest = MockGetLatestEntry::new();
fetch_action
.expect_fetch_action::<FieldDefinition, WasmError>()
.with(
// mockall::predicate::eq(&fetch_entries),
// mockall::predicate::eq(&fetch_links),
// mockall::predicate::eq(&get_latest),
// mockall::predicate::eq(FetchOptions::All),
mockall::predicate::always(), // will have to do this for now until the mock structs implement debug
mockall::predicate::always(),
mockall::predicate::always(),
mockall::predicate::always(),
mockall::predicate::eq(GetOptions::latest()),
mockall::predicate::eq(Path::from("field_definition".to_string())),
)
.times(1)
.return_const(Ok(vec![wire_element.clone()]));
Metadata
Assignees
Labels
No labels