Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lint/linter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestRetrieveModFile(t *testing.T) {
}

// TestIsGenerated tests isGenerated function.
func TestIsGenerated(t *testing.T) { //revive:disable-line:exported
func TestIsGenerated(t *testing.T) {
tests := []struct {
source string
generated bool
Expand Down
2 changes: 1 addition & 1 deletion lint/name_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package lint
import "testing"

// TestName tests Name function
func TestName(t *testing.T) { //revive:disable-line:exported
func TestName(t *testing.T) {
tests := []struct {
name, want string
}{
Expand Down
4 changes: 2 additions & 2 deletions test/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func srcLine(src []byte, p token.Position) string {
}

// TestLine tests srcLine function
func TestLine(t *testing.T) { //revive:disable-line:exported
func TestLine(t *testing.T) {
tests := []struct {
src string
offset int
Expand Down Expand Up @@ -325,7 +325,7 @@ func exportedType(typ types.Type) bool {
}

// TestExportedType tests exportedType function
func TestExportedType(t *testing.T) { //revive:disable-line:exported
func TestExportedType(t *testing.T) {
tests := []struct {
typString string
exp bool
Expand Down