20 lines
		
	
	
		
			490 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			490 B
		
	
	
	
		
			Go
		
	
	
	
	
	
//go:build go1.18
 | 
						|
// +build go1.18
 | 
						|
 | 
						|
//golangcitest:args -Etenv
 | 
						|
package testdata
 | 
						|
 | 
						|
import (
 | 
						|
	"os"
 | 
						|
	"testing"
 | 
						|
)
 | 
						|
 | 
						|
func FuzzF(f *testing.F) {
 | 
						|
	os.Setenv("a", "b")        // ERROR "os\\.Setenv\\(\\) can be replaced by `f\\.Setenv\\(\\)` in FuzzF"
 | 
						|
	err := os.Setenv("a", "b") // ERROR "os\\.Setenv\\(\\) can be replaced by `f\\.Setenv\\(\\)` in FuzzF"
 | 
						|
	_ = err
 | 
						|
	if err := os.Setenv("a", "b"); err != nil { // ERROR "os\\.Setenv\\(\\) can be replaced by `f\\.Setenv\\(\\)` in FuzzF"
 | 
						|
		_ = err
 | 
						|
	}
 | 
						|
}
 |