MCPcopy Create free account
hub / github.com/bootc-dev/bootc / test_iter_bytes_with_quotes

Function test_iter_bytes_with_quotes

crates/kernel_cmdline/src/bytes.rs:1083–1090  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1081
1082 #[test]
1083 fn test_iter_bytes_with_quotes() {
1084 let kargs = Cmdline::from(b"foo=\"bar baz\" qux");
1085 let params: Vec<_> = kargs.iter_bytes().collect();
1086
1087 assert_eq!(params.len(), 2);
1088 assert_eq!(params[0], b"foo=\"bar baz\"");
1089 assert_eq!(params[1], b"qux");
1090 }
1091
1092 #[test]
1093 fn test_iter_bytes_extra_whitespace() {

Callers

nothing calls this directly

Calls 1

iter_bytesMethod · 0.80

Tested by

no test coverage detected