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

Function test_remote_add_struct

atomic-cli/src/commands/remote/mod.rs:337–346  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

335
336 #[test]
337 fn test_remote_add_struct() {
338 let add = RemoteAdd {
339 name: "origin".to_string(),
340 url: "https://example.com/repo".to_string(),
341 default: false,
342 };
343 assert_eq!(add.name, "origin");
344 assert_eq!(add.url, "https://example.com/repo");
345 assert!(!add.default);
346 }
347
348 #[test]
349 fn test_remote_add_with_default() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected