1. Miki Tebeka
  2. go2xunit

Commits

Miki Tebeka  committed d58ef87

AddRemainingOutputToLastTest -> appendLast

  • Participants
  • Parent commits 3f9bea7
  • Branches default

Comments (0)

Files changed (1)

File go2xunit.go

View file
  • Ignore whitespace
 	var curSuite *Suite
 	var out []string
 
-	AddRemainingOutputToLastTest := func() error {
+	// Append last test output (in case of error) to last suite
+	appendLast := func() error {
 		if len(out) > 0 {
 			message := strings.Join(out, "\n")
 			if curSuite == nil {
 				Name: tokens[1],
 			}
 
-			if e := AddRemainingOutputToLastTest(); e != nil {
+			if e := appendLast(); e != nil {
 				return nil, e
 			}
 			continue
 			}
 			curSuite.Name = tokens[2]
 			curSuite.Time = tokens[3]
-			if e := AddRemainingOutputToLastTest(); e != nil {
+			if e := appendLast(); e != nil {
 				return nil, e
 			}
 			suites = append(suites, curSuite)