MCPcopy Create free account
hub / github.com/hashintel/hash / encode

Function encode

libs/@local/harpc/wire-protocol/src/payload.rs:92–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90
91 #[test]
92 fn encode() {
93 assert_encode(
94 &Payload(Bytes::from_static(b"hello world")),
95 expect![[r#"
96 0x00 0x0B b'h' b'e' b'l' b'l' b'o' b' ' b'w' b'o' b'r' b'l' b'd'
97 "#]],
98 );
99 }
100
101 #[test]
102 fn decode() {

Callers 5

encodeMethod · 0.70
query_data_types_implMethod · 0.50

Calls 2

assert_encodeFunction · 0.85
PayloadClass · 0.70

Tested by

no test coverage detected