MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / test_basis

Function test_basis

flow-rs/src/envelope/mod.rs:26–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25 #[test]
26 fn test_basis() {
27 let envelope = DummyEnvelope {}.seal();
28 assert!(envelope.is::<DummyEnvelope>());
29 let envelope = Envelope::new(0f32).seal();
30 assert!(!envelope.is::<DummyEnvelope>());
31 assert!(envelope.is::<Envelope<f32>>());
32 }
33}

Callers

nothing calls this directly

Calls 1

sealMethod · 0.80

Tested by

no test coverage detected