Debian Codegraph @

src/cmd/fix/buildtag_test.go

raw
1 // Copyright 2020 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
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 }