mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 11:07:46 +00:00
d8dbe5748a
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).
35 lines
867 B
Go
35 lines
867 B
Go
// 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")
|
|
}
|