MCPcopy Index your code
hub / github.com/cloud-hypervisor/cloud-hypervisor / test_toggle_invalid

Function test_toggle_invalid

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

Source from the content-addressed store, hash-verified

746
747 #[test]
748 fn test_toggle_invalid() {
749 let mut parser = OptionParser::new();
750 parser.add("flag");
751 parser.parse("flag=maybe").unwrap();
752 assert!(parser.convert::<Toggle>("flag").is_err());
753 }
754
755 #[test]
756 fn test_byte_sized() {

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
addMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected