MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / run_outside_repo_fails

Function run_outside_repo_fails

atomic-cli/src/commands/project/init.rs:261–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected