github.com/golangCi/golangCi-lint@v1.10.1/test/testdata/withtests/p_test.go (about)

     1  package withtests
     2  
     3  import (
     4  	"fmt"
     5  	"testing"
     6  )
     7  
     8  func TestSomething(t *testing.T) {
     9  	v := someType{
    10  		fieldUsedOnlyInTests: true,
    11  	}
    12  	fmt.Println(v, varUsedOnlyInTests)
    13  	usedOnlyInTests()
    14  }