MCPcopy Create free account
hub / github.com/apache/dubbo-rust / test_registry

Function test_registry

remoting/base/src/codec.rs:117–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115
116 #[test]
117 fn test_registry() {
118 let mut codec_registry = CodecRegistry::default();
119 codec_registry
120 .set_codec("test", BoxedCodec(Arc::new(TestCodec::default())))
121 .unwrap();
122 assert!(codec_registry.is_registered("test"));
123 }
124}

Callers

nothing calls this directly

Calls 3

defaultFunction · 0.85
BoxedCodecClass · 0.85
set_codecMethod · 0.80

Tested by

no test coverage detected