MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / test_node_subnet

Function test_node_subnet

fendermint/testing/materializer/src/lib.rs:443–450  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

441
442 #[test]
443 fn test_node_subnet() {
444 let tn = TestnetName::new("example");
445 let sn = tn.root().subnet("foo");
446 let node = sn.node("node-1");
447
448 assert!(sn.contains(&node));
449 assert_eq!(node.testnet(), tn, "testnet is the prefix");
450 }
451
452 #[test]
453 fn test_resource_name_display() {

Callers

nothing calls this directly

Calls 3

subnetMethod · 0.45
rootMethod · 0.45
nodeMethod · 0.45

Tested by

no test coverage detected