MCPcopy Create free account
hub / github.com/Firstyear/opensuse-proxy-cache / set_test

Function set_test

redis-server/src/parser.rs:314–323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

312
313 #[test]
314 fn set_test() {
315 let _ = tracing_subscriber::fmt::try_init();
316 assert!(
317 cmd_parser(b"*3\r\n$3\r\nSET\r\n$8\r\ntest_key\r\n$9\r\ntest_data\r\n")
318 == Ok((b"test_data\r\n", (Cmd::Set(b"test_key", 9), 31)))
319 )
320
321 // +OK
322 //
323 }
324
325 #[test]
326 fn cmd_test() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected