]> Cypherpunks repositories - gostls13.git/commit
testing: clarify T.Name returns a distinct name of the running test
authorChangkun Ou <hi@changkun.de>
Mon, 26 Jul 2021 13:04:48 +0000 (15:04 +0200)
committerIan Lance Taylor <iant@golang.org>
Tue, 27 Jul 2021 05:07:46 +0000 (05:07 +0000)
commit7ba8e796c91eaf4befcacc4d24127ae54475d6a5
treef9ef03aeead1c9a5c0f07f6281e9e1b1de2f56e3
parent33ff1559702388c57c45f9e6cd032f06e8c3c163
testing: clarify T.Name returns a distinct name of the running test

According to the discussion, it is clear that T.Name returns a
distinct name among all tests. However, there is no specification
of how sub-tests with the same specified test name are constructed.
This change only clarifies the uniqueness and the components of the
name without suggesting any explicit format of the returned name.

Fixes #46488

Change-Id: I6cebd419b69fb08d8646cb744a129548452042ef
Reviewed-on: https://go-review.googlesource.com/c/go/+/337392
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/testing/testing.go