From ff4efb1a4d232c4ac063ff38f5985661ea97b37e Mon Sep 17 00:00:00 2001 From: Julie Qiu Date: Thu, 19 Nov 2020 23:09:05 -0500 Subject: 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 TryBot-Result: kokoro Reviewed-by: Jonathan Amsterdam Trust: Julie Qiu --- internal/stdlib/testdata/v1.12.5/src/context/context_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/stdlib/testdata') 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) } -- cgit v1.3-5-g9baa