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

Function test_insert_error_from_local

atomic-repository/src/apply/tests.rs:125–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123
124#[test]
125fn test_insert_error_from_local() {
126 let local_err = LocalApplyError::ChangeAlreadyApplied {
127 hash: Hash::of(b"test"),
128 };
129 let insert_err: InsertError = local_err.into();
130 assert!(matches!(insert_err, InsertError::AlreadyApplied { .. }));
131
132 let local_err = LocalApplyError::DependencyMissing {
133 hash: Hash::of(b"dep"),
134 };
135 let insert_err: InsertError = local_err.into();
136 assert!(matches!(
137 insert_err,
138 InsertError::MissingDependencies { .. }
139 ));
140}
141
142// Compute Insert Order Tests
143

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected