()
| 526 | |
| 527 | #[test] |
| 528 | fn keyword_with_operator_multiple_values() { |
| 529 | let input = r#" |
| 530 | ciphers +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() { |
nothing calls this directly
no test coverage detected