示例#1
0
func (t *IntegrationTest) SetUp(c *TestInfo) {
	t.reporter.errors = make([]errorReport, 0)
	t.reporter.fatalErrors = make([]errorReport, 0)
	t.controller = oglemock.NewController(&t.reporter)

	t.reader = mock_io.NewMockReader(t.controller, "")
}
示例#2
0
// newTestInfo creates a valid but empty TestInfo struct.
func newTestInfo() (info *TestInfo) {
	info = &TestInfo{}
	info.MockController = oglemock.NewController(&testInfoErrorReporter{info})
	info.Ctx = context.Background()

	return
}