Home | History | Annotate | Download | only in cover

Lines Matching refs:go

1 // Copyright 2013 The Go Authors. All rights reserved.
29 testMain = filepath.Join(testdata, "main.go")
30 testTest = filepath.Join(testdata, "test.go")
31 coverInput = filepath.Join(testdata, "test_line.go")
32 coverOutput = filepath.Join(testdata, "test_cover.go")
37 // Run this shell script, but do it in Go so it can be run by "go test".
39 // replace the word LINE with the line number < testdata/test.go > testdata/test_line.go
40 // go build -o ./testcover
41 // ./testcover -mode=count -var=CoverTest -o ./testdata/test_cover.go testdata/test_line.go
42 // go run ./testdata/main.go ./testdata/test.go
60 // defer removal of test_line.go
65 // go build -o testcover
72 // ./testcover -mode=count -var=thisNameMustBeVeryLongToCauseOverflowOfCounterIncrementStatementOntoNextLineForTest -o ./testdata/test_cover.go testdata/test_line.go
76 // defer removal of ./testdata/test_cover.go
81 // go run ./testdata/main.go ./testdata/test.go
90 if got, err := regexp.MatchString(".*\n//go:nosplit\nfunc someFunction().*", string(file)); err != nil || !got {
93 // "go:linkname" compiler directive should be present.
94 if got, err := regexp.MatchString(`.*go\:linkname some\_name some\_name.*`, string(file)); err != nil || !got {
95 t.Errorf("'go:linkname' compiler directive not found: got=(%v, %v); want=(true; nil)", got, err)
99 c := ".*// This comment shouldn't appear in generated go code.*"