// 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 }
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, "") }
// newTestInfo creates a valid but empty TestInfo struct. func newTestInfo() *TestInfo { info := &TestInfo{} info.failureRecords = make([]*failureRecord, 0) info.MockController = oglemock.NewController(&testInfoErrorReporter{info}) return info }