()
| 3964 | |
| 3965 | #[test] |
| 3966 | fn replace_all_same_length() { |
| 3967 | let mut buffer = b"abcabc".to_vec(); |
| 3968 | let replaced = sz::try_replace_all(&mut buffer, b"ab", b"XY").unwrap(); |
| 3969 | assert_eq!(replaced, 2); |
| 3970 | assert_eq!(buffer, b"XYcXYc"); |
| 3971 | } |
| 3972 | |
| 3973 | #[test] |
| 3974 | fn replace_all_shrinks() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…