()
| 1091 | |
| 1092 | #[test] |
| 1093 | fn test_iter_bytes_extra_whitespace() { |
| 1094 | let kargs = Cmdline::from(b" foo bar "); |
| 1095 | let params: Vec<_> = kargs.iter_bytes().collect(); |
| 1096 | |
| 1097 | assert_eq!(params.len(), 2); |
| 1098 | assert_eq!(params[0], b"foo"); |
| 1099 | assert_eq!(params[1], b"bar"); |
| 1100 | } |
| 1101 | |
| 1102 | #[test] |
| 1103 | fn test_iter_bytes_empty() { |
nothing calls this directly
no test coverage detected