testing: implement some benchmark stubs
This allows the following packages to pass tests: * crypto/des * encoding/hex I have not included crypto/rc4 as it doesn't pass tests on Go 1.11 (but it works on later versions).
Этот коммит содержится в:
родитель
c2bfe6bc8d
коммит
d8dbe5748a
2 изменённых файлов: 14 добавлений и 0 удалений
2
Makefile
2
Makefile
|
@ -198,7 +198,9 @@ tinygo-test:
|
||||||
$(TINYGO) test container/heap
|
$(TINYGO) test container/heap
|
||||||
$(TINYGO) test container/list
|
$(TINYGO) test container/list
|
||||||
$(TINYGO) test container/ring
|
$(TINYGO) test container/ring
|
||||||
|
$(TINYGO) test crypto/des
|
||||||
$(TINYGO) test encoding/ascii85
|
$(TINYGO) test encoding/ascii85
|
||||||
|
$(TINYGO) test encoding/hex
|
||||||
$(TINYGO) test math
|
$(TINYGO) test math
|
||||||
$(TINYGO) test text/scanner
|
$(TINYGO) test text/scanner
|
||||||
$(TINYGO) test unicode/utf8
|
$(TINYGO) test unicode/utf8
|
||||||
|
|
|
@ -20,3 +20,15 @@ type InternalBenchmark struct {
|
||||||
Name string
|
Name string
|
||||||
F func(b *B)
|
F func(b *B)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (b *B) SetBytes(n int64) {
|
||||||
|
panic("testing: unimplemented: B.SetBytes")
|
||||||
|
}
|
||||||
|
|
||||||
|
func (b *B) ResetTimer() {
|
||||||
|
panic("testing: unimplemented: B.ResetTimer")
|
||||||
|
}
|
||||||
|
|
||||||
|
func (b *B) Run(name string, f func(b *B)) bool {
|
||||||
|
panic("testing: unimplemented: B.Run")
|
||||||
|
}
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче