X-Git-Url: https://git.josue.xyz/?p=dotfiles%2F.git;a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fcoc-go-data%2Ftools%2Fpkg%2Fmod%2Fhonnef.co%2Fgo%2Ftools%40v0.0.1-2020.1.5%2Fstaticcheck%2Ftestdata%2Fsrc%2FCheckExtremeComparison%2FCheckExtremeComparison.go;fp=.config%2Fcoc%2Fextensions%2Fcoc-go-data%2Ftools%2Fpkg%2Fmod%2Fhonnef.co%2Fgo%2Ftools%40v0.0.1-2020.1.5%2Fstaticcheck%2Ftestdata%2Fsrc%2FCheckExtremeComparison%2FCheckExtremeComparison.go;h=0000000000000000000000000000000000000000;hp=7d7e16e52a6a338f1124eef81d79e4e72687afc9;hb=3ddadb3c98564791f0ac36cb39771d844a63dc91;hpb=5f797af6612ed10887189b47a1efc2f915586e59 diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckExtremeComparison/CheckExtremeComparison.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckExtremeComparison/CheckExtremeComparison.go deleted file mode 100644 index 7d7e16e5..00000000 --- a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckExtremeComparison/CheckExtremeComparison.go +++ /dev/null @@ -1,43 +0,0 @@ -package pkg - -import "math" - -func fn1() { - var ( - u8 uint8 - u16 uint16 - u uint - - i8 int8 - i16 int16 - i int - ) - - _ = u8 > math.MaxUint8 // want `no value of type uint8 is greater than math\.MaxUint8` - _ = u8 >= math.MaxUint8 // want `no value of type uint8 is greater than math\.MaxUint8` - _ = u8 >= 0 // want `every value of type uint8 is >= 0` - _ = u8 <= math.MaxUint8 // want `every value of type uint8 is <= math\.MaxUint8` - _ = u8 > 0 - _ = u8 >= 1 - _ = u8 < math.MaxUint8 - _ = u8 < 0 // want `no value of type uint8 is less than 0` - _ = u8 <= 0 - _ = 0 > u8 // want `no value of type uint8 is less than 0` - _ = 0 >= u8 - - _ = u16 > math.MaxUint8 - _ = u16 > math.MaxUint16 // want `no value of type uint16 is greater than math\.MaxUint16` - _ = u16 <= math.MaxUint8 - _ = u16 <= math.MaxUint16 // want `every value of type uint16 is <= math\.MaxUint16` - - _ = u > math.MaxUint32 - - _ = i8 > math.MaxInt8 // want `no value of type int8 is greater than math\.MaxInt8` - _ = i16 > math.MaxInt8 - _ = i16 > math.MaxInt16 // want `no value of type int16 is greater than math\.MaxInt16` - _ = i > math.MaxInt32 - _ = i8 < 0 - _ = i8 <= math.MinInt8 // want `no value of type int8 is less than math\.MinInt8` - _ = i8 < math.MinInt8 // want `no value of type int8 is less than math\.MinInt8` - _ = i8 >= math.MinInt8 // want `every value of type int8 is >= math.MinInt8` -}