Commits

Miki Tebeka committed 619a09e

oops

Comments (0)

Files changed (1)

 import (
 	"os"
 	"testing"
-
-	"bitbucket.org/tebeka/go2xunit/types"
-	"bitbucket.org/tebeka/go2xunit/gocheck"
-	"bitbucket.org/tebeka/go2xunit/gotest"
 )
 
 func Test_NumFailed(t *testing.T) {
-	suite := &types.Suite{
-		Tests: []*types.Test{},
+	suite := &Suite{
+		Tests: []*Test{},
 	}
 	if suite.NumFailed() != 0 {
 		t.Fatal("found more than 1 failure in empty list")
 	}
 
-	suite.Tests = []*types.Test{
-		&types.Test{Failed: false},
-		&types.Test{Failed: true},
-		&types.Test{Failed: false},
+	suite.Tests = []*Test{
+		&Test{Failed: false},
+		&Test{Failed: true},
+		&Test{Failed: false},
 	}
 
 	if suite.NumFailed() != 1 {
 	}
 }
 
-func loadTests(filename string, t *testing.T) ([]*types.Suite, error) {
+func loadTests(filename string, t *testing.T) ([]*Suite, error) {
 	file, err := os.Open(filename)
 	if err != nil {
 		t.Fatalf("can't open %s - %s", filename, err)
 	}
 
-	return gotest.Parse(file)
+	return gt_Parse(file)
 }
 
 func Test_parseOutput(t *testing.T) {
 		t.Fatalf("can't open %s - %s", filename, err)
 	}
 
-	suites, err := gocheck.Parse(file)
+	suites, err := gc_Parse(file)
 
 	if err != nil {
 		t.Fatalf("can't parse %s - %s", filename, err)
 		t.Fatalf("can't open %s - %s", filename, err)
 	}
 
-	suites, err := gocheck.Parse(file)
+	suites, err := gc_Parse(file)
 
 	if err != nil {
 		t.Fatalf("can't parse %s - %s", filename, err)