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

Function keyword_with_operator_multiple_values

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

Source from the content-addressed store, hash-verified

526
527 #[test]
528 fn keyword_with_operator_multiple_values() {
529 let input = r#"
530ciphers +aes256-ctr,aes128-ctr
531"#;
532 let result: Map<String, Value> = parse_text_to_map(input).unwrap();
533 let ciphers = result.get("ciphers").unwrap().as_object().unwrap();
534 let value_array = ciphers.get("value").unwrap().as_array().unwrap();
535 assert_eq!(value_array.len(), 2);
536 assert_eq!(value_array[0], Value::String("aes256-ctr".to_string()));
537 assert_eq!(value_array[1], Value::String("aes128-ctr".to_string()));
538 assert_eq!(ciphers.get("operator").unwrap(), &Value::String("+".to_string()));
539 }
540
541 #[test]
542 fn single_match_block() {

Callers

nothing calls this directly

Calls 2

parse_text_to_mapFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected