Skip to content

Commit 716b454

Browse files
committed
chore: add tests
1 parent ecd295e commit 716b454

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

pkg/golinters/godot/testdata/fix/in/godot.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ func godot(a, b int) int {
1111
// Nothing to do here
1212
return a + b
1313
}
14+
15+
// Foo Lorem ipsum dolor sit amet, consectetur adipiscing elit.
16+
// Aenean rhoncus odio enim, et pulvinar libero ultrices quis.
17+
// Nulla at erat tellus. Maecenas id dapibus velit, ut porttitor ipsum
18+
func Foo() {
19+
// nothing to do here
20+
}

pkg/golinters/godot/testdata/fix/out/godot.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ func godot(a, b int) int {
1111
// Nothing to do here
1212
return a + b
1313
}
14+
15+
// Foo Lorem ipsum dolor sit amet, consectetur adipiscing elit.
16+
// Aenean rhoncus odio enim, et pulvinar libero ultrices quis.
17+
// Nulla at erat tellus. Maecenas id dapibus velit, ut porttitor ipsum.
18+
func Foo() {
19+
// nothing to do here
20+
}

pkg/golinters/godot/testdata/godot.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,12 @@ package testdata
77
func Godot() {
88
// nothing to do here
99
}
10+
11+
// want +4 "Comment should end in a period"
12+
13+
// Foo Lorem ipsum dolor sit amet, consectetur adipiscing elit.
14+
// Aenean rhoncus odio enim, et pulvinar libero ultrices quis.
15+
// Nulla at erat tellus. Maecenas id dapibus velit, ut porttitor ipsum
16+
func Foo() {
17+
// nothing to do here
18+
}

0 commit comments

Comments
 (0)