testing: implement dummy Helper method
This lets a few more packages pass tests: container/heap and encoding/ascii85.
Этот коммит содержится в:
родитель
0ecfe9eade
коммит
9a12d129ab
2 изменённых файлов: 8 добавлений и 1 удалений
2
Makefile
2
Makefile
|
@ -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
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче