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

Function test_builder_reset

atomic-core/src/record/workflow/graph_op/tests.rs:554–562  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

552
553#[test]
554fn test_builder_reset() {
555 let mut builder = HunkBuilder::new("test.rs");
556 builder.process_insert(5, 5, 3);
557
558 builder.reset("other.rs");
559
560 assert_eq!(builder.path(), "other.rs");
561 assert_eq!(builder.pending_count(), 0);
562}
563
564#[test]
565fn test_builder_with_encoding() {

Callers

nothing calls this directly

Calls 2

process_insertMethod · 0.80
resetMethod · 0.80

Tested by

no test coverage detected