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

Function test_take_conflicts

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

Source from the content-addressed store, hash-verified

658
659 #[test]
660 fn test_take_conflicts() {
661 with_writer(|writer| {
662 writer.begin_conflict(1, None).unwrap();
663 writer.end_conflict(1).unwrap();
664 writer.begin_conflict(2, None).unwrap();
665 writer.end_conflict(2).unwrap();
666
667 let conflicts = writer.take_conflicts();
668 assert_eq!(conflicts.len(), 2);
669 assert!(writer.conflicts().is_empty());
670 });
671 }
672
673 // ------------------------------------------------------------------------
674 // Into Inner Tests

Callers

nothing calls this directly

Calls 5

with_writerFunction · 0.85
take_conflictsMethod · 0.80
unwrapMethod · 0.45
begin_conflictMethod · 0.45
end_conflictMethod · 0.45

Tested by

no test coverage detected