()
| 504 | |
| 505 | #[test] |
| 506 | fn keyword_with_operator_variations() { |
| 507 | let input = r#" |
| 508 | ciphers +aes256-ctr |
| 509 | macs -hmac-md5 |
| 510 | kexalgorithms ^ecdh-sha2-nistp256 |
| 511 | "#; |
| 512 | let result: Map<String, Value> = parse_text_to_map(input).unwrap(); |
| 513 | |
| 514 | let ciphers = result.get("ciphers").unwrap().as_object().unwrap(); |
| 515 | assert_eq!(ciphers.get("operator").unwrap(), &Value::String("+".to_string())); |
| 516 | assert!(ciphers.get("value").unwrap().is_array()); |
| 517 | |
| 518 | let macs = result.get("macs").unwrap().as_object().unwrap(); |
| 519 | assert_eq!(macs.get("operator").unwrap(), &Value::String("-".to_string())); |
| 520 | assert!(macs.get("value").unwrap().is_array()); |
| 521 | |
| 522 | let kex = result.get("kexalgorithms").unwrap().as_object().unwrap(); |
| 523 | assert_eq!(kex.get("operator").unwrap(), &Value::String("^".to_string())); |
| 524 | assert!(kex.get("value").unwrap().is_array()); |
| 525 | } |
| 526 | |
| 527 | #[test] |
| 528 | fn keyword_with_operator_multiple_values() { |
nothing calls this directly
no test coverage detected