MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / run_tests_encode

Function run_tests_encode

lrwn/src/applayer/multicastsetup/v2.rs:1405–1416  ·  view source on GitHub ↗
(tests: &[CommandTest])

Source from the content-addressed store, hash-verified

1403 }
1404
1405 fn run_tests_encode(tests: &[CommandTest]) {
1406 for tst in tests {
1407 println!("> {}", tst.name);
1408 let resp = tst.command.to_vec();
1409 if let Some(e) = &tst.expected_error {
1410 assert!(resp.is_err());
1411 assert_eq!(e, &resp.err().unwrap().to_string());
1412 } else {
1413 assert_eq!(tst.bytes, resp.unwrap());
1414 }
1415 }
1416 }
1417
1418 fn run_tests_decode(tests: &[CommandTest]) {
1419 for tst in tests {

Callers 12

test_package_version_reqFunction · 0.70
test_package_version_ansFunction · 0.70
test_mc_group_status_reqFunction · 0.70
test_mc_group_status_ansFunction · 0.70
test_mc_group_setup_reqFunction · 0.70
test_mc_group_setup_ansFunction · 0.70
test_mc_group_delete_reqFunction · 0.70
test_mc_group_delete_ansFunction · 0.70

Calls 1

to_vecMethod · 0.45

Tested by 12

test_package_version_reqFunction · 0.56
test_package_version_ansFunction · 0.56
test_mc_group_status_reqFunction · 0.56
test_mc_group_status_ansFunction · 0.56
test_mc_group_setup_reqFunction · 0.56
test_mc_group_setup_ansFunction · 0.56
test_mc_group_delete_reqFunction · 0.56
test_mc_group_delete_ansFunction · 0.56