MCPcopy Create free account
hub / github.com/alibaba/open-code-review / makeDiff

Function makeDiff

internal/diff/relocation_test.go:40–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40func makeDiff() *model.Diff {
41 return &model.Diff{
42 NewPath: "main.go",
43 Diff: `@@ -10,6 +10,8 @@
44 import "fmt"
45
46 func main() {
47+ x := 1
48+ y := 2
49 fmt.Println("hello")
50 }
51`,
52 }
53}
54
55func TestResolveComment_TextMatchSuccess(t *testing.T) {
56 cm := model.LlmComment{

Calls

no outgoing calls

Tested by

no test coverage detected