()
| 39 | |
| 40 | #[test] |
| 41 | fn first_read_is_a_miss() { |
| 42 | let mut c = make_cache(256, 64, 2, true); |
| 43 | c.read_byte(RAM_BASE).expect("cache access should succeed"); |
| 44 | assert_eq!(c.stats().read_misses, 1); |
| 45 | assert_eq!(c.stats().read_hits, 0); |
| 46 | } |
| 47 | |
| 48 | #[test] |
| 49 | fn second_read_same_block_is_a_hit() { |
nothing calls this directly
no test coverage detected