tinygo/tests/tinygotest/main_test.go
Brad Erickson 7c758b0dfc testing: Add Benchmark B struct stub
This struct allows test files containing basic benchmarks to compile
and run, but will not run the benchmarks themselves.

For #491
2019-08-11 14:51:02 +02:00

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) {
}