MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / test_empty_input

Function test_empty_input

option_parser/src/lib.rs:665–671  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

663
664 #[test]
665 fn test_empty_input() {
666 let mut parser = OptionParser::new();
667 parser.add("foo");
668 parser.parse("").unwrap();
669 parser.parse(" ").unwrap();
670 assert!(!parser.is_set("foo"));
671 }
672
673 #[test]
674 fn test_parse_subset_ignores_unknown() {

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
addMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected