Commit 44009a24 authored by Kevin Burke's avatar Kevin Burke Committed by Brad Fitzpatrick

cmd/cover: fix typo

Change-Id: I3f13488605ab62eba5d3c59d5e9df1bcf69dd571
Reviewed-on: https://go-review.googlesource.com/30355Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 316f93f7
...@@ -90,7 +90,7 @@ func TestCover(t *testing.T) { ...@@ -90,7 +90,7 @@ func TestCover(t *testing.T) {
if got, err := regexp.MatchString(".*\n//go:nosplit\nfunc someFunction().*", string(file)); err != nil || !got { if got, err := regexp.MatchString(".*\n//go:nosplit\nfunc someFunction().*", string(file)); err != nil || !got {
t.Errorf("misplaced compiler directive: got=(%v, %v); want=(true; nil)", got, err) t.Errorf("misplaced compiler directive: got=(%v, %v); want=(true; nil)", got, err)
} }
// No other comments should be present in generaed code. // No other comments should be present in generated code.
c := ".*// This comment shouldn't appear in generated go code.*" c := ".*// This comment shouldn't appear in generated go code.*"
if got, err := regexp.MatchString(c, string(file)); err != nil || got { if got, err := regexp.MatchString(c, string(file)); err != nil || got {
t.Errorf("non compiler directive comment %q found. got=(%v, %v); want=(false; nil)", c, got, err) t.Errorf("non compiler directive comment %q found. got=(%v, %v); want=(false; nil)", c, got, err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment