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

Function makeDiff

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected