...
Source file
src/cmd/fix/buildtag_test.go
Documentation: cmd/fix
1
2
3
4
5 package main
6
7 func init() {
8 addTestCases(buildtagTests, buildtag)
9 }
10
11 var buildtagTests = []testCase{
12 {
13 Name: "buildtag.oldGo",
14 Version: "go1.10",
15 In: `//go:build yes
16 // +build yes
17
18 package main
19 `,
20 },
21 {
22 Name: "buildtag.new",
23 Version: "go1.99",
24 In: `//go:build yes
25 // +build yes
26
27 package main
28 `,
29 Out: `//go:build yes
30
31 package main
32 `,
33 },
34 }
35
View as plain text