github.com/cockroachdb/tools@v0.0.0-20230222021103-a6d27438930d/go/packages/packagestest/testdata/test.go (about) 1 // Copyright 2018 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 fake1 6 7 // This is a test file for the behaviors in Exported.Expect. 8 9 type AThing string //@AThing,mark(StringThing, "AThing"),mark(REThing,re`.T.*g`) 10 11 type Match string //@check("Match",re`[[:upper:]]`) 12 13 //@check(AThing, StringThing) 14 //@check(AThing, REThing) 15 16 //@boolArg(true, false) 17 //@intArg(42) 18 //@stringArg(PlainString, "PlainString") 19 //@stringArg(IdentAsString,IdentAsString) 20 //@directNote() 21 //@range(AThing) 22 23 // The following test should remain at the bottom of the file 24 //@checkEOF(EOF)