()
| 121 | |
| 122 | #[test] |
| 123 | fn test_from_args_unknown_instrument_value() { |
| 124 | let args = RunArgs { |
| 125 | instruments: vec!["unknown".into()], |
| 126 | mongo_uri_env_name: Some("MONGODB_URI".into()), |
| 127 | ..RunArgs::test() |
| 128 | }; |
| 129 | let instruments = Instruments::try_from(&args); |
| 130 | assert!(instruments.is_err()); |
| 131 | assert_eq!( |
| 132 | instruments.unwrap_err().to_string(), |
| 133 | "Invalid instrument name: unknown" |
| 134 | ); |
| 135 | } |
| 136 | } |
nothing calls this directly
no outgoing calls
no test coverage detected