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

Function config_get_test

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

Source from the content-addressed store, hash-verified

284
285 #[test]
286 fn config_get_test() {
287 let _ = tracing_subscriber::fmt::try_init();
288 assert!(
289 cmd_parser(b"*3\r\n$6\r\nCONFIG\r\n$3\r\nGET\r\n$9\r\nmaxmemory\r\n")
290 == Ok((b"", (Cmd::ConfigGet(b"maxmemory"), 40))) //
291 // *2
292 // $9
293 // maxmemory
294 // $10
295 // 3758096384
296 );
297 }
298
299 #[test]
300 fn get_test() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected