MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / node_builder_sets_name

Function node_builder_sets_name

crates/runtime/src/sim/executor/mod.rs:757–765  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

755
756 #[test]
757 fn node_builder_sets_name() {
758 let runtime = Runtime::new(9);
759 let unnamed = runtime.create_node().build();
760 let named = runtime.create_node().name("replica-1").build();
761
762 assert_eq!(unnamed.name(), None);
763 assert_eq!(named.name(), Some("replica-1"));
764 assert_ne!(unnamed.id(), named.id());
765 }
766
767 #[cfg(feature = "simulation")]
768 #[test]

Callers

nothing calls this directly

Calls 4

create_nodeMethod · 0.80
nameMethod · 0.65
newFunction · 0.50
buildMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…