aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/testing
diff options
context:
space:
mode:
authorDamian Gryski <[email protected]>2021-09-27 10:16:34 -0700
committerRon Evans <[email protected]>2021-09-27 20:02:02 +0200
commit32899d1cc3d39b53ac32cc406afbbe0cec2c7dac (patch)
treeab55236244efe2a0392700df8b376cfd470a710a /src/testing
parent0dfb33656381f5999450426680f3b5eb6c9800a0 (diff)
downloadtinygo-32899d1cc3d39b53ac32cc406afbbe0cec2c7dac.tar.gz
tinygo-32899d1cc3d39b53ac32cc406afbbe0cec2c7dac.zip
testing: add a stub for t.Parallel()
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go
index 0b8d01aec..c7650f632 100644
--- a/src/testing/testing.go
+++ b/src/testing/testing.go
@@ -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 {