Skip to content

Commit e0bbdec

Browse files
committed
Add std lib import requirement to testdata
- Add strconv import and usage to satisfy checklist requirement - Tests must have at least one std lib import
1 parent 79da98f commit e0bbdec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/golinters/gounqvet/testdata/gounqvet.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package testdata
33
import (
44
"database/sql"
55
"fmt"
6+
"strconv"
67
)
78

89
func badQueries() {
@@ -27,6 +28,9 @@ func badQueries() {
2728
_ = goodQuery
2829

2930
fmt.Println(query)
31+
32+
// Use strconv to satisfy std lib import requirement
33+
_ = strconv.Itoa(42)
3034
}
3135

3236
type SQLBuilder interface {

0 commit comments

Comments
 (0)