github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/staticcheck/sa3001/testdata/src/example.com/CheckBenchmarkN/CheckBenchmarkN.go (about)

     1  package foo
     2  
     3  import "testing"
     4  
     5  func foo() {
     6  	var b *testing.B
     7  	b.N = 1 //@ diag(`should not assign to b.N`)
     8  	_ = b
     9  }