MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / test_from_args_unknown_instrument_value

Function test_from_args_unknown_instrument_value

src/instruments/mod.rs:123–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected