
This struct allows test files containing basic benchmarks to compile and run, but will not run the benchmarks themselves. For #491
19 строки
321 Б
Go
19 строки
321 Б
Go
package main
|
|
|
|
import (
|
|
"testing" // This is the tinygo testing package
|
|
)
|
|
|
|
func TestFail1(t *testing.T) {
|
|
t.Error("TestFail1 failed because of stuff and things")
|
|
}
|
|
|
|
func TestFail2(t *testing.T) {
|
|
t.Error("TestFail2 failed for reasons")
|
|
}
|
|
|
|
func TestPass(t *testing.T) {
|
|
}
|
|
|
|
func BenchmarkNotImplemented(b *testing.B) {
|
|
}
|