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

Function encode_protocol

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

Source from the content-addressed store, hash-verified

186
187 #[test]
188 fn encode_protocol() {
189 assert_encode(
190 &crate::protocol::Protocol {
191 version: ProtocolVersion::V1,
192 },
193 expect![[r#"
194 b'h' b'a' b'r' b'p' b'c' 0x01
195 "#]],
196 );
197 }
198
199 #[test]
200 fn decode_protocol() {

Callers

nothing calls this directly

Calls 1

assert_encodeFunction · 0.85

Tested by

no test coverage detected