()
| 29 | |
| 30 | #[test] |
| 31 | fn gather_args_zero_args() -> Result<(), Box<dyn Error>> { |
| 32 | let prompt = String::from("\n"); |
| 33 | let mut args: Vec<String> = prompt.split_whitespace().map(str::to_string).collect(); |
| 34 | match a::gather_args(&mut args) { |
| 35 | Ok(_) => Err("run() should return Err() if no args are present".into()), |
| 36 | Err(_) => Ok(()), |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | #[test] |
| 41 | fn prompt_without_api_key() -> Result<(), Box<dyn Error>> { |
nothing calls this directly
no test coverage detected
searching dependent graphs…