gitee.com/wgliang/goreporter@v0.0.0-20180902115603-df1b20f7c5d0/linters/simplecode/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  }