diff options
| author | Julie Qiu <julie@golang.org> | 2020-11-19 23:09:05 -0500 |
|---|---|---|
| committer | Julie Qiu <julie@golang.org> | 2020-11-20 17:06:53 +0000 |
| commit | ff4efb1a4d232c4ac063ff38f5985661ea97b37e (patch) | |
| tree | 0dfc86951e16ff791f5f7d5beba7b461b60a44ff /internal/stdlib/testdata | |
| parent | 6657ef22c5588415c202445532bd23498217f364 (diff) | |
| download | go-x-pkgsite-ff4efb1a4d232c4ac063ff38f5985661ea97b37e.tar.xz | |
internal: rename tc to test
The variable tc is renamed to test when used to refer to a test case, for
consistency throughout the rest of the codebase, which uses the
variable test in most cases.
Change-Id: I88a87aa020928af98e8579a299f3111718dfa044
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/271809
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Trust: Julie Qiu <julie@golang.org>
Diffstat (limited to 'internal/stdlib/testdata')
| -rw-r--r-- | internal/stdlib/testdata/v1.12.5/src/context/context_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/stdlib/testdata/v1.12.5/src/context/context_test.go b/internal/stdlib/testdata/v1.12.5/src/context/context_test.go index f73f2837..0b6ca742 100644 --- a/internal/stdlib/testdata/v1.12.5/src/context/context_test.go +++ b/internal/stdlib/testdata/v1.12.5/src/context/context_test.go @@ -139,18 +139,18 @@ func XTestParentFinishesChild(t testingT) { // The parent's children should contain the two cancelable children. pc := parent.(*cancelCtx) cc := cancelChild.(*cancelCtx) - tc := timerChild.(*timerCtx) + test := timerChild.(*timerCtx) pc.mu.Lock() - if len(pc.children) != 2 || !contains(pc.children, cc) || !contains(pc.children, tc) { + if len(pc.children) != 2 || !contains(pc.children, cc) || !contains(pc.children, test) { t.Errorf("bad linkage: pc.children = %v, want %v and %v", - pc.children, cc, tc) + pc.children, cc, test) } pc.mu.Unlock() if p, ok := parentCancelCtx(cc.Context); !ok || p != pc { t.Errorf("bad linkage: parentCancelCtx(cancelChild.Context) = %v, %v want %v, true", p, ok, pc) } - if p, ok := parentCancelCtx(tc.Context); !ok || p != pc { + if p, ok := parentCancelCtx(test.Context); !ok || p != pc { t.Errorf("bad linkage: parentCancelCtx(timerChild.Context) = %v, %v want %v, true", p, ok, pc) } |
