Skip to content

Commit 34899b4

Browse files
committed
TestCase should not be public for junit formatter
1 parent 8a07e4c commit 34899b4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fmt_junit.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type junitFormatter struct {
3434

3535
func (j *junitFormatter) Feature(feature *gherkin.Feature, path string) {
3636
testSuite := &junitTestSuite{
37-
TestCases: make([]*TestCase, 0),
37+
TestCases: make([]*junitTestCase, 0),
3838
Name: feature.Name,
3939
}
4040

@@ -47,7 +47,7 @@ func (j *junitFormatter) Feature(feature *gherkin.Feature, path string) {
4747

4848
func (j *junitFormatter) Node(node interface{}) {
4949
suite := j.current()
50-
tcase := &TestCase{}
50+
tcase := &junitTestCase{}
5151

5252
switch t := node.(type) {
5353
case *gherkin.ScenarioOutline:
@@ -145,7 +145,7 @@ type junitError struct {
145145
Type string `xml:"type,attr"`
146146
}
147147

148-
type TestCase struct {
148+
type junitTestCase struct {
149149
XMLName xml.Name `xml:"testcase"`
150150
Name string `xml:"name,attr"`
151151
Status string `xml:"status,attr"`
@@ -162,10 +162,10 @@ type junitTestSuite struct {
162162
Failures int `xml:"failures,attr"`
163163
Errors int `xml:"errors,attr"`
164164
Time string `xml:"time,attr"`
165-
TestCases []*TestCase
165+
TestCases []*junitTestCase
166166
}
167167

168-
func (ts *junitTestSuite) current() *TestCase {
168+
func (ts *junitTestSuite) current() *junitTestCase {
169169
return ts.TestCases[len(ts.TestCases)-1]
170170
}
171171

0 commit comments

Comments
 (0)