()
| 1059 | |
| 1060 | #[test] |
| 1061 | fn test_iter_bytes_simple() { |
| 1062 | let kargs = Cmdline::from(b"foo bar baz"); |
| 1063 | let params: Vec<_> = kargs.iter_bytes().collect(); |
| 1064 | |
| 1065 | assert_eq!(params.len(), 3); |
| 1066 | assert_eq!(params[0], b"foo"); |
| 1067 | assert_eq!(params[1], b"bar"); |
| 1068 | assert_eq!(params[2], b"baz"); |
| 1069 | } |
| 1070 | |
| 1071 | #[test] |
| 1072 | fn test_iter_bytes_with_values() { |
nothing calls this directly
no test coverage detected