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

Function test_remove_duplicates

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

Source from the content-addressed store, hash-verified

986
987 #[test]
988 fn test_remove_duplicates() {
989 let mut kargs = Cmdline::from(b"a=1 b=2 a=3");
990 assert!(kargs.remove(&"a".into()));
991 let mut iter = kargs.iter();
992 assert_eq!(iter.next(), Some(param("b=2")));
993 assert_eq!(iter.next(), None);
994 }
995
996 #[test]
997 fn test_remove_exact() {

Callers

nothing calls this directly

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected