github.com/serversong/goreporter@v0.0.0-20200325104552-3cfaf44fd178/linters/simpler/testdata/compare.go (about)

     1  package pkg
     2  
     3  import "bytes"
     4  
     5  func fn() {
     6  	_ = bytes.Compare(nil, nil) == 0 // MATCH / bytes.Equal/
     7  	_ = bytes.Compare(nil, nil) != 0 // MATCH /!bytes.Equal/
     8  	_ = bytes.Compare(nil, nil) > 0
     9  	_ = bytes.Compare(nil, nil) < 0
    10  }