()
| 487 | |
| 488 | #[test] |
| 489 | fn incr_existing_key() { |
| 490 | let mut engine = make_engine(); |
| 491 | engine.incr(1, "counters", b"hits", 10, 0, 1000).unwrap(); |
| 492 | let result = engine.incr(1, "counters", b"hits", 5, 0, 1000); |
| 493 | assert_eq!(result.unwrap(), 15); |
| 494 | } |
| 495 | |
| 496 | #[test] |
| 497 | fn incr_negative_delta() { |
nothing calls this directly
no test coverage detected