Esempio n. 1
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
}
Esempio n. 2
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, "")
}
Esempio n. 3
0
// 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
}