We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c860f67 commit 03c88f2Copy full SHA for 03c88f2
pkg/golinters/internal/diff_test.go
@@ -19,6 +19,13 @@ func Test_parse(t *testing.T) {
19
log logutils.Log
20
expected []Change
21
}{
22
+ {
23
+ diff: "delete_last_line.diff",
24
+ expected: []Change{{
25
+ From: 10,
26
+ To: 10,
27
+ }},
28
+ },
29
{
30
diff: "delete_only_first_lines.diff",
31
expected: []Change{{
pkg/golinters/internal/testdata/delete_last_line.diff
@@ -0,0 +1,9 @@
1
+diff --git i/main.go w/main.go
2
+index ef3cbb7..52a7925 100644
3
+--- i/main.go
4
++++ w/main.go
5
+@@ -7,4 +7,3 @@ import (
6
+ func main() {
7
+ fmt.Println("hello world")
8
+ }
9
+-
0 commit comments