testing: nudge type TB closer to upstream; should be a no-op change.
Этот коммит содержится в:
родитель
58d0499e55
коммит
a9a225ba26
1 изменённых файлов: 4 добавлений и 3 удалений
|
@ -103,6 +103,7 @@ func fmtDuration(d time.Duration) string {
|
||||||
|
|
||||||
// TB is the interface common to T and B.
|
// TB is the interface common to T and B.
|
||||||
type TB interface {
|
type TB interface {
|
||||||
|
Cleanup(func())
|
||||||
Error(args ...interface{})
|
Error(args ...interface{})
|
||||||
Errorf(format string, args ...interface{})
|
Errorf(format string, args ...interface{})
|
||||||
Fail()
|
Fail()
|
||||||
|
@ -110,6 +111,7 @@ type TB interface {
|
||||||
Failed() bool
|
Failed() bool
|
||||||
Fatal(args ...interface{})
|
Fatal(args ...interface{})
|
||||||
Fatalf(format string, args ...interface{})
|
Fatalf(format string, args ...interface{})
|
||||||
|
Helper()
|
||||||
Log(args ...interface{})
|
Log(args ...interface{})
|
||||||
Logf(format string, args ...interface{})
|
Logf(format string, args ...interface{})
|
||||||
Name() string
|
Name() string
|
||||||
|
@ -117,8 +119,7 @@ type TB interface {
|
||||||
SkipNow()
|
SkipNow()
|
||||||
Skipf(format string, args ...interface{})
|
Skipf(format string, args ...interface{})
|
||||||
Skipped() bool
|
Skipped() bool
|
||||||
Helper()
|
TempDir() string
|
||||||
Parallel()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var _ TB = (*T)(nil)
|
var _ TB = (*T)(nil)
|
||||||
|
@ -345,7 +346,7 @@ func (c *common) runCleanup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parallel is not implemented, it is only provided for compatibility.
|
// Parallel is not implemented, it is only provided for compatibility.
|
||||||
func (c *common) Parallel() {
|
func (t *T) Parallel() {
|
||||||
// Unimplemented.
|
// Unimplemented.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче