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

Function multiarg_string_keyword

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

Source from the content-addressed store, hash-verified

450
451 #[test]
452 fn multiarg_string_keyword() {
453 let input = "hostkeyalgorithms ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com\r\n";
454 let result: Map<String, Value> = parse_text_to_map(input).unwrap();
455 let expected = vec![
456 Value::String("ssh-ed25519-cert-v01@openssh.com".to_string()),
457 Value::String("ecdsa-sha2-nistp256-cert-v01@openssh.com".to_string()),
458 ];
459 assert_eq!(result.get("hostkeyalgorithms").unwrap(), &Value::Array(expected));
460 }
461
462 #[test]
463 fn multiarg_string_with_spaces_keyword() {

Callers

nothing calls this directly

Calls 1

parse_text_to_mapFunction · 0.85

Tested by

no test coverage detected