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

Function test_into_iterator

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

Source from the content-addressed store, hash-verified

1048
1049 #[test]
1050 fn test_into_iterator() {
1051 let kargs = Cmdline::from(b"foo=bar baz=qux wiz");
1052 let params: Vec<_> = (&kargs).into_iter().collect();
1053
1054 assert_eq!(params.len(), 3);
1055 assert_eq!(params[0], param("foo=bar"));
1056 assert_eq!(params[1], param("baz=qux"));
1057 assert_eq!(params[2], param("wiz"));
1058 }
1059
1060 #[test]
1061 fn test_iter_bytes_simple() {

Callers

nothing calls this directly

Calls 1

into_iterMethod · 0.45

Tested by

no test coverage detected