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

Function test_position_stored

atomic-core/src/output/repo/writer.rs:513–519  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

511
512 #[test]
513 fn test_position_stored() {
514 let pos = Position::new(NodeId::new(42), ChangePosition::new(100));
515 let mut buffer = Vec::new();
516 let writer = ConflictWriter::new(&mut buffer, "file.rs", pos);
517
518 assert_eq!(writer.position(), pos);
519 }
520
521 // ------------------------------------------------------------------------
522 // Write Tests

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected