Skip to content

Commit 9a12d12

Browse files
aykevldeadprogram
authored andcommitted
testing: implement dummy Helper method
This lets a few more packages pass tests: container/heap and encoding/ascii85.
1 parent 0ecfe9e commit 9a12d12

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,10 @@ test: wasi-libc
195195
# implied -v flag).
196196
.PHONY: tinygo-test
197197
tinygo-test:
198+
$(TINYGO) test container/heap
198199
$(TINYGO) test container/list
199200
$(TINYGO) test container/ring
201+
$(TINYGO) test encoding/ascii85
200202
$(TINYGO) test math
201203
$(TINYGO) test text/scanner
202204
$(TINYGO) test unicode/utf8

src/testing/testing.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type TB interface {
4242
SkipNow()
4343
Skipf(format string, args ...interface{})
4444
Skipped() bool
45-
// Helper()
45+
Helper()
4646
}
4747

4848
var _ TB = (*T)(nil)
@@ -154,6 +154,11 @@ func (c *common) Skipped() bool {
154154
return c.skipped
155155
}
156156

157+
// Helper is not implemented, it is only provided for compatibility.
158+
func (c *common) Helper() {
159+
// Unimplemented.
160+
}
161+
157162
// InternalTest is a reference to a test that should be called during a test suite run.
158163
type InternalTest struct {
159164
Name string

0 commit comments

Comments
 (0)