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

Function test_external_position_equality

atomic-core/src/apply/position.rs:378–386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

376
377 #[test]
378 fn test_external_position_equality() {
379 let hash = Hash::of(b"test");
380 let pos1 = make_external_position(Some(hash), 42);
381 let pos2 = make_external_position(Some(hash), 42);
382 let pos3 = make_external_position(Some(hash), 43);
383
384 assert_eq!(pos1, pos2);
385 assert_ne!(pos1, pos3);
386 }
387
388 #[test]
389 fn test_external_vertex_equality() {

Callers

nothing calls this directly

Calls 1

make_external_positionFunction · 0.85

Tested by

no test coverage detected