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

Function test_new

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

Source from the content-addressed store, hash-verified

499
500 #[test]
501 fn test_new() {
502 let mut buffer = Vec::new();
503 let writer = ConflictWriter::new(&mut buffer, "test.rs", test_position());
504
505 assert_eq!(writer.path(), "test.rs");
506 assert_eq!(writer.current_line(), 1);
507 assert_eq!(writer.bytes_written(), 0);
508 assert!(writer.conflicts().is_empty());
509 assert!(!writer.has_conflicts());
510 }
511
512 #[test]
513 fn test_position_stored() {

Callers

nothing calls this directly

Calls 1

test_positionFunction · 0.70

Tested by

no test coverage detected