@@ -34,7 +34,7 @@ type junitFormatter struct {
34
34
35
35
func (j * junitFormatter ) Feature (feature * gherkin.Feature , path string ) {
36
36
testSuite := & junitTestSuite {
37
- TestCases : make ([]* TestCase , 0 ),
37
+ TestCases : make ([]* junitTestCase , 0 ),
38
38
Name : feature .Name ,
39
39
}
40
40
@@ -47,7 +47,7 @@ func (j *junitFormatter) Feature(feature *gherkin.Feature, path string) {
47
47
48
48
func (j * junitFormatter ) Node (node interface {}) {
49
49
suite := j .current ()
50
- tcase := & TestCase {}
50
+ tcase := & junitTestCase {}
51
51
52
52
switch t := node .(type ) {
53
53
case * gherkin.ScenarioOutline :
@@ -145,7 +145,7 @@ type junitError struct {
145
145
Type string `xml:"type,attr"`
146
146
}
147
147
148
- type TestCase struct {
148
+ type junitTestCase struct {
149
149
XMLName xml.Name `xml:"testcase"`
150
150
Name string `xml:"name,attr"`
151
151
Status string `xml:"status,attr"`
@@ -162,10 +162,10 @@ type junitTestSuite struct {
162
162
Failures int `xml:"failures,attr"`
163
163
Errors int `xml:"errors,attr"`
164
164
Time string `xml:"time,attr"`
165
- TestCases []* TestCase
165
+ TestCases []* junitTestCase
166
166
}
167
167
168
- func (ts * junitTestSuite ) current () * TestCase {
168
+ func (ts * junitTestSuite ) current () * junitTestCase {
169
169
return ts .TestCases [len (ts .TestCases )- 1 ]
170
170
}
171
171
0 commit comments