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

Function test_iter_bytes_with_values

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

Source from the content-addressed store, hash-verified

1070
1071 #[test]
1072 fn test_iter_bytes_with_values() {
1073 let kargs = Cmdline::from(b"foo=bar baz=qux wiz");
1074 let params: Vec<_> = kargs.iter_bytes().collect();
1075
1076 assert_eq!(params.len(), 3);
1077 assert_eq!(params[0], b"foo=bar");
1078 assert_eq!(params[1], b"baz=qux");
1079 assert_eq!(params[2], b"wiz");
1080 }
1081
1082 #[test]
1083 fn test_iter_bytes_with_quotes() {

Callers

nothing calls this directly

Calls 1

iter_bytesMethod · 0.80

Tested by

no test coverage detected