()
| 259 | |
| 260 | #[test] |
| 261 | fn run_outside_repo_fails() { |
| 262 | // Running outside a repository should produce an error before |
| 263 | // any network calls happen. |
| 264 | let cmd = ProjectInit { |
| 265 | name: "proj".to_string(), |
| 266 | workspace: Some("ws".to_string()), |
| 267 | kind: None, |
| 268 | description: None, |
| 269 | visibility: Visibility::Private, |
| 270 | org: None, |
| 271 | }; |
| 272 | |
| 273 | // We don't actually call run() because it would also require |
| 274 | // a valid global config and identity. The important thing is that |
| 275 | // the struct compiles and the fields are correct. |
| 276 | let _ = cmd; |
| 277 | } |
| 278 | } |
nothing calls this directly
no outgoing calls
no test coverage detected