pub fn assert_exonum_core_protos(api: &TestKitApi) {
    let response: HashSet<String> = api
        .public(ApiKind::RustRuntime)
        .query(&ProtoSourcesQuery::Core)
        .get::<Vec<ProtoSourceFile>>("proto-sources")
        .expect("Rust runtime Api unexpectedly failed")
        .into_iter()
        .map(|proto_source| proto_source.name)
        .collect();

    let expected_files: HashSet<String> = vec![
        "key_value_sequence.proto",
        "blockchain.proto",
        "messages.proto",
        "runtime.proto",
        "common.proto",
        "types.proto",
        "proofs.proto",
        "list_proof.proto",
        "map_proof.proto",
    ]
    .into_iter()
    .map(str::to_owned)
    .collect();

    assert_eq!(response, expected_files);
}
/// Validates a list of proto descriptions retrieved from the rust-runtime API.
Validates a list of proto descriptions retrieved from the rust-runtime API.
Validates a list of proto descriptions retrieved from the rust - runtime API .
pub fn assert_exonum_core_protos(api: &TestKitApi) {
    let response: HashSet<String> = api
        .public(ApiKind::RustRuntime)
        .query(&ProtoSourcesQuery::Core)
        .get::<Vec<ProtoSourceFile>>("proto-sources")
        .expect("Rust runtime Api unexpectedly failed")
        .into_iter()
        .map(|proto_source| proto_source.name)
        .collect();
    let expected_files: HashSet<String> = vec![
        "key_value_sequence.proto",
        "blockchain.proto",
        "messages.proto",
        "runtime.proto",
        "common.proto",
        "types.proto",
        "proofs.proto",
        "list_proof.proto",
        "map_proof.proto",
    ]
    .into_iter()
    .map(str::to_owned)
    .collect();
    assert_eq!(response, expected_files);
}
pub fn assert_exonum_core_protos ( api : & TestKitApi ) { let response : HashSet < String > = api . public ( ApiKind :: RustRuntime ) . query ( & ProtoSourcesQuery :: Core ) . get :: < Vec < ProtoSourceFile > > ( " " ) . expect ( " " ) . into_iter ( ) . map ( | proto_source | proto_source . name ) . collect ( ) ; let expected_files : HashSet < String > = vec ! [ " " " " " " " " " " " " " " " " " " ] . into_iter ( ) . map ( str :: to_owned ) . collect ( ) ; assert_eq ! ( response expected_files ) ; }
Validates a list of proto descriptions retrieved from the rust-runtime API.
Validates a list of proto descriptions retrieved from the rust - runtime API .
api
&TestKitApi
api
&TestKitApi