File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -30,42 +30,42 @@ func Test_evaluateBuildTags(t *testing.T) {
3030 assert assert.BoolAssertionFunc
3131 }{
3232 {
33- desc : "" ,
33+ desc : "old build tag syntax, version inside the range " ,
3434 tag : "// +build go1.18" ,
3535 assert : assert .True ,
3636 },
3737 {
38- desc : "" ,
38+ desc : "old build tag syntax, version outside the range " ,
3939 tag : "// +build go1.42" ,
4040 assert : assert .False ,
4141 },
4242 {
43- desc : "" ,
43+ desc : "version inside the range " ,
4444 tag : "//go:build go1.18" ,
4545 assert : assert .True ,
4646 },
4747 {
48- desc : "" ,
48+ desc : "version outside the range " ,
4949 tag : "//go:build go1.42" ,
5050 assert : assert .False ,
5151 },
5252 {
53- desc : "" ,
53+ desc : "supported OS " ,
5454 tag : "//go:build " + runtime .GOOS ,
5555 assert : assert .True ,
5656 },
5757 {
58- desc : "" ,
58+ desc : "negate unsupported OS " ,
5959 tag : "//go:build !wondiws" ,
6060 assert : assert .True ,
6161 },
6262 {
63- desc : "" ,
63+ desc : "unsupported OS " ,
6464 tag : "//go:build wondiws" ,
6565 assert : assert .False ,
6666 },
6767 {
68- desc : "" ,
68+ desc : "version inside the range and supported OS " ,
6969 tag : "//go:build go1.18 && " + runtime .GOOS ,
7070 assert : assert .True ,
7171 },
You can’t perform that action at this time.
0 commit comments