aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorBrad Erickson <[email protected]>2019-08-10 17:00:08 -0700
committerAyke <[email protected]>2019-08-11 14:51:02 +0200
commit7c758b0dfcbb4f65ed2dbd233911f60a58e19235 (patch)
treec54e9eb3b91a6e69ec5f60ab291f8934367fdefd /tests
parent4ea59742d7c2a8d89ffe5164e1ce974721e5661c (diff)
downloadtinygo-7c758b0dfcbb4f65ed2dbd233911f60a58e19235.tar.gz
tinygo-7c758b0dfcbb4f65ed2dbd233911f60a58e19235.zip
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
Diffstat (limited to 'tests')
-rw-r--r--tests/tinygotest/main_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/tinygotest/main_test.go b/tests/tinygotest/main_test.go
index 61ce28285..263aac149 100644
--- a/tests/tinygotest/main_test.go
+++ b/tests/tinygotest/main_test.go
@@ -14,3 +14,6 @@ func TestFail2(t *testing.T) {
func TestPass(t *testing.T) {
}
+
+func BenchmarkNotImplemented(b *testing.B) {
+}