Lines Matching defs:common
75 type common struct { struct
76 output []byte // Output generated by test or benchmark.
77 failed bool // Test or benchmark has failed.
78 start time.Time // Time test or benchmark started
79 duration time.Duration
80 self interface{} // To be sent on signal channel when done.
81 signal chan interface{} // Output for serial tests.
125 common anonMember
131 func (c *common) Fail() { c.failed = true }
134 func (c *common) Failed() bool { return c.failed }
138 func (c *common) FailNow() {
164 func (c *common) log(s string) {
170 func (c *common) Log(args ...interface{}) { c.log(fmt.Sprintln(args...)) }
174 func (c *common) Logf(format string, args ...interface{}) { c.log(fmt.Sprintf(format, args...)) }
177 func (c *common) Error(args ...interface{}) {
183 func (c *common) Errorf(format string, args ...interface{}) {
189 func (c *common) Fatal(args ...interface{}) {
195 func (c *common) Fatalf(format string, args ...interface{}) {