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

Function test_iter_bytes_simple

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

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

iter_bytesMethod · 0.80

Tested by

no test coverage detected