mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 10:37:46 +00:00
testing: add a stub for t.Parallel()
This commit is contained in:
@@ -64,6 +64,7 @@ type TB interface {
|
||||
Skipf(format string, args ...interface{})
|
||||
Skipped() bool
|
||||
Helper()
|
||||
Parallel()
|
||||
}
|
||||
|
||||
var _ TB = (*T)(nil)
|
||||
@@ -194,6 +195,11 @@ func (c *common) Helper() {
|
||||
// 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
|
||||
// and returns whether the subtest succeeded.
|
||||
func (t *T) Run(name string, f func(t *T)) bool {
|
||||
|
||||
Reference in New Issue
Block a user