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

Function test_kargs_iter_utf8

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

Source from the content-addressed store, hash-verified

740
741 #[test]
742 fn test_kargs_iter_utf8() {
743 let kargs = Cmdline::from(b"foo=bar,bar2 \xff baz=fuz bad=oh\xffno wiz");
744 let mut iter = kargs.iter_utf8();
745
746 assert_eq!(iter.next(), Some(param_utf8("foo=bar,bar2")));
747 assert_eq!(iter.next(), Some(param_utf8("baz=fuz")));
748 assert_eq!(iter.next(), Some(param_utf8("wiz")));
749 assert_eq!(iter.next(), None);
750 }
751
752 #[test]
753 fn test_kargs_find_utf8() {

Callers

nothing calls this directly

Calls 1

iter_utf8Method · 0.80

Tested by

no test coverage detected