mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
ecccfa82aa
Signed-off-by: Doug Davis <dug@us.ibm.com>
36 lines
550 B
Go
36 lines
550 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/go-check/check"
|
|
)
|
|
|
|
func Test(t *testing.T) {
|
|
check.TestingT(t)
|
|
}
|
|
|
|
type TimerSuite struct {
|
|
start time.Time
|
|
}
|
|
|
|
func (s *TimerSuite) SetUpTest(c *check.C) {
|
|
s.start = time.Now()
|
|
}
|
|
|
|
func (s *TimerSuite) TearDownTest(c *check.C) {
|
|
fmt.Printf("%-60s%.2f\n", c.TestName(), time.Since(s.start).Seconds())
|
|
}
|
|
|
|
type DockerSuite struct {
|
|
TimerSuite
|
|
}
|
|
|
|
func (s *DockerSuite) TearDownTest(c *check.C) {
|
|
deleteAllContainers()
|
|
s.TimerSuite.TearDownTest(c)
|
|
}
|
|
|
|
var _ = check.Suite(&DockerSuite{})
|