()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected