MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / drop_topic

Function drop_topic

nodedb/src/control/pubsub.rs:406–412  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

404
405 #[test]
406 fn drop_topic() {
407 let registry = TopicRegistry::new(1000);
408 registry.create_topic("temp").unwrap();
409 assert!(registry.drop_topic("temp").is_ok());
410 assert!(registry.drop_topic("temp").is_err()); // already gone
411 assert!(registry.list_topics().is_empty());
412 }
413
414 #[test]
415 fn bounded_message_log() {

Callers

nothing calls this directly

Calls 1

create_topicMethod · 0.80

Tested by

no test coverage detected