MCPcopy Create free account
hub / github.com/ddimaria/rust-blockchain-tutorial / it_parses_string_params

Function it_parses_string_params

runtime/src/contract.rs:98–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97 #[test]
98 fn it_parses_string_params() {
99 let parsed = parse_params(&[PARAMS_1[0], PARAMS_1[1]]).unwrap();
100 assert_eq!(parsed, Val::String("Rust Coin".into()));
101 }
102
103 #[test]
104 fn it_parses_u64_params() {

Callers

nothing calls this directly

Calls 1

parse_paramsFunction · 0.85

Tested by

no test coverage detected