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

Function parse_nil_bulk_string

nodedb/src/control/server/resp/codec.rs:431–437  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

429
430 #[test]
431 fn parse_nil_bulk_string() {
432 let mut parser = RespParser::new();
433 parser.feed(b"$-1\r\n");
434
435 let result = parser.try_parse().unwrap().unwrap();
436 assert_eq!(result, RespValue::nil());
437 }
438
439 #[test]
440 fn parse_multiple_commands() {

Callers

nothing calls this directly

Calls 2

try_parseMethod · 0.80
feedMethod · 0.45

Tested by

no test coverage detected