MCPcopy Create free account
hub / github.com/PowerShell/DSC / multiarg_string_with_spaces_keyword

Function multiarg_string_with_spaces_keyword

resources/sshdconfig/src/parser.rs:463–471  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

461
462 #[test]
463 fn multiarg_string_with_spaces_keyword() {
464 let input = "allowgroups administrators \"openssh users\"\r\n";
465 let result: Map<String, Value> = parse_text_to_map(input).unwrap();
466 let expected = vec![
467 Value::String("administrators".to_string()),
468 Value::String("openssh users".to_string()),
469 ];
470 assert_eq!(result.get("allowgroups").unwrap(), &Value::Array(expected));
471 }
472
473 #[test]
474 fn bool_keyword() {

Callers

nothing calls this directly

Calls 1

parse_text_to_mapFunction · 0.85

Tested by

no test coverage detected