Skip to content

implement necessary traits on data structures such that they can be compared for mock input #22

Open
@weswalla

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions