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

Function test_remote_entry_serialize

atomic-repository/src/remote.rs:742–747  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

740
741 #[test]
742 fn test_remote_entry_serialize() {
743 let entry = RemoteEntry::new_default("https://example.com/repo");
744 let toml_str = toml::to_string(&entry).unwrap();
745 assert!(toml_str.contains("url = \"https://example.com/repo\""));
746 assert!(toml_str.contains("default = true"));
747 }
748
749 #[test]
750 fn test_remote_entry_deserialize() {

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected