mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-22 21:39:01 +00:00
testing: implement dummy Helper method
This lets a few more packages pass tests: container/heap and encoding/ascii85.
This commit is contained in:
committed by
Ron Evans
parent
0ecfe9eade
commit
9a12d129ab
@@ -195,8 +195,10 @@ test: wasi-libc
|
|||||||
# implied -v flag).
|
# implied -v flag).
|
||||||
.PHONY: tinygo-test
|
.PHONY: tinygo-test
|
||||||
tinygo-test:
|
tinygo-test:
|
||||||
|
$(TINYGO) test container/heap
|
||||||
$(TINYGO) test container/list
|
$(TINYGO) test container/list
|
||||||
$(TINYGO) test container/ring
|
$(TINYGO) test container/ring
|
||||||
|
$(TINYGO) test encoding/ascii85
|
||||||
$(TINYGO) test math
|
$(TINYGO) test math
|
||||||
$(TINYGO) test text/scanner
|
$(TINYGO) test text/scanner
|
||||||
$(TINYGO) test unicode/utf8
|
$(TINYGO) test unicode/utf8
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ type TB interface {
|
|||||||
SkipNow()
|
SkipNow()
|
||||||
Skipf(format string, args ...interface{})
|
Skipf(format string, args ...interface{})
|
||||||
Skipped() bool
|
Skipped() bool
|
||||||
// Helper()
|
Helper()
|
||||||
}
|
}
|
||||||
|
|
||||||
var _ TB = (*T)(nil)
|
var _ TB = (*T)(nil)
|
||||||
@@ -154,6 +154,11 @@ func (c *common) Skipped() bool {
|
|||||||
return c.skipped
|
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.
|
// InternalTest is a reference to a test that should be called during a test suite run.
|
||||||
type InternalTest struct {
|
type InternalTest struct {
|
||||||
Name string
|
Name string
|
||||||
|
|||||||
Reference in New Issue
Block a user