// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // // This file has been modified for use by the TinyGo compiler. package testing // B is a type passed to Benchmark functions to manage benchmark timing and to // specify the number of iterations to run. // // TODO: Implement benchmarks. This struct allows test files containing // benchmarks to compile and run, but will not run the benchmarks themselves. type B struct { common N int } type InternalBenchmark struct { Name string 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") }