testing: add a stub for t.Parallel()
Этот коммит содержится в:
родитель
0dfb336563
коммит
32899d1cc3
1 изменённых файлов: 6 добавлений и 0 удалений
|
@ -64,6 +64,7 @@ type TB interface {
|
||||||
Skipf(format string, args ...interface{})
|
Skipf(format string, args ...interface{})
|
||||||
Skipped() bool
|
Skipped() bool
|
||||||
Helper()
|
Helper()
|
||||||
|
Parallel()
|
||||||
}
|
}
|
||||||
|
|
||||||
var _ TB = (*T)(nil)
|
var _ TB = (*T)(nil)
|
||||||
|
@ -194,6 +195,11 @@ func (c *common) Helper() {
|
||||||
// Unimplemented.
|
// Unimplemented.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Parallel is not implemented, it is only provided for compatibility.
|
||||||
|
func (c *common) Parallel() {
|
||||||
|
// Unimplemented.
|
||||||
|
}
|
||||||
|
|
||||||
// Run runs a subtest of f t called name. It waits until the subtest is finished
|
// Run runs a subtest of f t called name. It waits until the subtest is finished
|
||||||
// and returns whether the subtest succeeded.
|
// and returns whether the subtest succeeded.
|
||||||
func (t *T) Run(name string, f func(t *T)) bool {
|
func (t *T) Run(name string, f func(t *T)) bool {
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче