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

Function repeatable_numeric_keyword

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

Source from the content-addressed store, hash-verified

392
393 #[test]
394 fn repeatable_numeric_keyword() {
395 let input = r#"
396 port 1234
397 port 5678
398 "#.trim_start();
399 let result: Map<String, Value> = parse_text_to_map(input).unwrap();
400 let expected = vec![Value::Number(1234.into()), Value::Number(5678.into())];
401 assert_eq!(result.get("port").unwrap(), &Value::Array(expected));
402 }
403
404 #[test]
405 fn subsystem_keyword() {

Callers

nothing calls this directly

Calls 1

parse_text_to_mapFunction · 0.85

Tested by

no test coverage detected