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

Function test_find_str

crates/kernel_cmdline/src/utf8.rs:719–726  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

717
718 #[test]
719 fn test_find_str() {
720 let kargs = Cmdline::from("foo=bar baz=qux switch rd.break");
721 let p = kargs.find("foo").unwrap();
722 assert_eq!(p, param("foo=bar"));
723 let p = kargs.find("rd.break").unwrap();
724 assert_eq!(p, param("rd.break"));
725 assert!(kargs.find("missing").is_none());
726 }
727
728 #[test]
729 fn test_find_all_str() {

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected