feat: metadata 上报

This commit is contained in:
yokowu
2025-07-18 17:12:52 +08:00
parent 37ecd66295
commit 9abe5dcc9f
30 changed files with 1225 additions and 30 deletions

View File

@@ -0,0 +1,25 @@
package diff
import (
"fmt"
"testing"
)
func TestParseConflictsAndCountLines(t *testing.T) {
conflictText := `<<<<<<< HEAD
old line 1
=======
new line 1
new line 2
>>>>>>> branch1
normal line
<<<<<<< HEAD
old line 2
old line 3
=======
new line 3
>>>>>>> branch2`
addedLines := ParseConflictsAndCountLines(conflictText)
fmt.Println(addedLines)
}