Ejemplo n.º 1
0
func (self *outputParser) registerTestFunction() {
	self.test = contract.NewTestResult(self.line[len("=== RUN "):])
	self.tests = append(self.tests, self.test)
}
Ejemplo n.º 2
0
func (self *outputParser) registerTestFunction() {
	testName := testNamePattern.FindStringSubmatch(self.line)[1]
	self.test = contract.NewTestResult(testName)
	self.tests = append(self.tests, self.test)
	self.testMap[self.test.TestName] = self.test
}