From 9a12d129ab9628adcff581ef3544529a67cced12 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Fri, 25 Sep 2020 21:17:54 +0200 Subject: [PATCH] testing: implement dummy Helper method This lets a few more packages pass tests: container/heap and encoding/ascii85. --- Makefile | 2 ++ src/testing/testing.go | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 32036cd8..dd79b509 100644 --- a/Makefile +++ b/Makefile @@ -195,8 +195,10 @@ test: wasi-libc # implied -v flag). .PHONY: tinygo-test tinygo-test: + $(TINYGO) test container/heap $(TINYGO) test container/list $(TINYGO) test container/ring + $(TINYGO) test encoding/ascii85 $(TINYGO) test math $(TINYGO) test text/scanner $(TINYGO) test unicode/utf8 diff --git a/src/testing/testing.go b/src/testing/testing.go index e9b50b0c..260c38cf 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -42,7 +42,7 @@ type TB interface { SkipNow() Skipf(format string, args ...interface{}) Skipped() bool - // Helper() + Helper() } var _ TB = (*T)(nil) @@ -154,6 +154,11 @@ func (c *common) Skipped() bool { return c.skipped } +// Helper is not implemented, it is only provided for compatibility. +func (c *common) Helper() { + // Unimplemented. +} + // InternalTest is a reference to a test that should be called during a test suite run. type InternalTest struct { Name string