diff options
| author | Keith Randall <khr@golang.org> | 2026-03-27 17:14:43 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-03-31 11:01:20 -0700 |
| commit | 1582ad41058df1092eaed9dec4d97b7856953ade (patch) | |
| tree | bfd7cdaab0ce6827d3460c1cd0076e75792e4858 /src/cmd | |
| parent | d5b6d583c16f60e4a2f80f8b0fe78abab503f84c (diff) | |
| download | go-1582ad41058df1092eaed9dec4d97b7856953ade.tar.xz | |
test/codegen: fix some unbalanced quotes
Change-Id: I081da8c79f0264118e079af21ff58c511ae37e6c
Reviewed-on: https://go-review.googlesource.com/c/go/+/760682
Reviewed-by: Junyang Shao <shaojunyang@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Joel Sing <joel@sing.id.au>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Keith Randall <khr@google.com>
Diffstat (limited to 'src/cmd')
| -rw-r--r-- | src/cmd/internal/testdir/testdir_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/internal/testdir/testdir_test.go b/src/cmd/internal/testdir/testdir_test.go index e4d5b5d70b..18891f0081 100644 --- a/src/cmd/internal/testdir/testdir_test.go +++ b/src/cmd/internal/testdir/testdir_test.go @@ -1683,6 +1683,8 @@ func (t test) wantedAsmOpcodes(fn string) asmChecks { tail := comment[lastUsed:] if possibleOpcodeRx.MatchString(tail) { t.Errorf("%s:%d: possible unused assembly pattern: %v", t.goFileName(), i+1, tail) + } else if strings.Count(comment, "\"")%2 != 0 || strings.Count(comment, "`")%2 != 0 { + t.Errorf("%s:%d: unbalanced quotes: %v", t.goFileName(), i+1, comment) } } comment = "" |
