File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -101,15 +101,6 @@ func SetSubtestMode(mode SubtestMode) Option {
101
101
}
102
102
}
103
103
104
- // NewParser returns a new Go test output parser.
105
- func NewParser (options ... Option ) * Parser {
106
- p := & Parser {}
107
- for _ , option := range options {
108
- option (p )
109
- }
110
- return p
111
- }
112
-
113
104
// Parser is a Go test output Parser.
114
105
type Parser struct {
115
106
packageName string
@@ -120,6 +111,15 @@ type Parser struct {
120
111
events []Event
121
112
}
122
113
114
+ // NewParser returns a new Go test output parser.
115
+ func NewParser (options ... Option ) * Parser {
116
+ p := & Parser {}
117
+ for _ , option := range options {
118
+ option (p )
119
+ }
120
+ return p
121
+ }
122
+
123
123
// Parse parses Go test output from the given io.Reader r and returns
124
124
// gtr.Report.
125
125
func (p * Parser ) Parse (r io.Reader ) (gtr.Report , error ) {
You can’t perform that action at this time.
0 commit comments