Skip to content

Missing fields in types structs not tested #241

Closed
@jamillambert

Description

@jamillambert

Integration tests still pass if there are missing return fields in the JSON-RPC method structs in types.

e.g. types/src/v17/network/mod.rs:65 getnettotals, all the fields can be deleted and the test still passes:

#[test]
fn network__get_net_totals() {
    let node = Node::with_wallet(Wallet::None, &[]);
    let _: GetNetTotals = node.client.get_net_totals().expect("getnettotals");
}

NB. if there is an extra field or incorrectly named field the test does fail.

Metadata

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