1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
package expectate_test
import (
"fmt"
"time"
)
type MockTestingT struct {
FataledWith string
}
func (t *MockTestingT) Fatalf(format string, args ...interface{}) {
t.FataledWith = fmt.Sprintf(format, args...)
}
type Person struct {
Name string
Age int
Job string
Birthday time.Time
}
var samplePointerToPerson = &Person{
Name: "John Doe",
Age: 30,
Job: "Electrician",
Birthday: time.Date(1990, time.January, 1, 0, 0, 0, 0, time.UTC),
}
type ExpectTest struct {
name string
subject interface{}
object interface{}
expectedFailure string
}
|