()
| 27 | |
| 28 | #[test] |
| 29 | fn calling_next_directly() { |
| 30 | let mut counter = Counter::new(); |
| 31 | |
| 32 | assert_eq!(counter.next(), Some(1)); |
| 33 | assert_eq!(counter.next(), Some(2)); |
| 34 | assert_eq!(counter.next(), Some(3)); |
| 35 | assert_eq!(counter.next(), Some(4)); |
| 36 | assert_eq!(counter.next(), Some(5)); |
| 37 | assert_eq!(counter.next(), None); |
| 38 | } |
| 39 | |
| 40 | #[test] |
| 41 | fn using_other_iterator_trait_methods() { |
nothing calls this directly
no outgoing calls
no test coverage detected