fix line numbers in test after rebase
Этот коммит содержится в:
родитель
fe33ed6e75
коммит
43dd0a1df3
2 изменённых файлов: 10 добавлений и 10 удалений
|
@ -257,7 +257,7 @@ Feature: cucumber json formatter
|
|||
"name": "passing step",
|
||||
"line": 7,
|
||||
"match": {
|
||||
"location": "suite_context.go:67"
|
||||
"location": "suite_context.go:64"
|
||||
},
|
||||
"result": {
|
||||
"status": "passed",
|
||||
|
@ -269,7 +269,7 @@ Feature: cucumber json formatter
|
|||
"name": "a failing step",
|
||||
"line": 8,
|
||||
"match": {
|
||||
"location": "suite_context.go:50"
|
||||
"location": "suite_context.go:47"
|
||||
},
|
||||
"result": {
|
||||
"status": "failed",
|
||||
|
@ -325,7 +325,7 @@ Feature: cucumber json formatter
|
|||
"name": "passing step",
|
||||
"line": 11,
|
||||
"match": {
|
||||
"location": "suite_context.go:67"
|
||||
"location": "suite_context.go:64"
|
||||
},
|
||||
"result": {
|
||||
"status": "passed",
|
||||
|
@ -347,7 +347,7 @@ Feature: cucumber json formatter
|
|||
"name": "failing step",
|
||||
"line": 12,
|
||||
"match": {
|
||||
"location": "suite_context.go:50"
|
||||
"location": "suite_context.go:47"
|
||||
},
|
||||
"result": {
|
||||
"status": "failed",
|
||||
|
@ -448,7 +448,7 @@ Feature: cucumber json formatter
|
|||
"line": 8
|
||||
},
|
||||
"match": {
|
||||
"location": "suite_context.go:67"
|
||||
"location": "suite_context.go:64"
|
||||
},
|
||||
"result": {
|
||||
"status": "passed",
|
||||
|
@ -501,7 +501,7 @@ Feature: cucumber json formatter
|
|||
"name": "passing step",
|
||||
"line": 7,
|
||||
"match": {
|
||||
"location": "suite_context.go:67"
|
||||
"location": "suite_context.go:64"
|
||||
},
|
||||
"result": {
|
||||
"status": "passed",
|
||||
|
@ -535,7 +535,7 @@ Feature: cucumber json formatter
|
|||
"name": "passing step",
|
||||
"line": 10,
|
||||
"match": {
|
||||
"location": "suite_context.go:67"
|
||||
"location": "suite_context.go:64"
|
||||
},
|
||||
"result": {
|
||||
"status": "skipped"
|
||||
|
|
|
@ -442,14 +442,14 @@ func (s *suiteContext) theseEventsHadToBeFiredForNumberOfTimes(tbl *gherkin.Data
|
|||
}
|
||||
|
||||
func (s *suiteContext) theRenderJSONWillBe(docstring *gherkin.DocString) error {
|
||||
loc := regexp.MustCompile(`"suite_test.go:\d+"`)
|
||||
loc := regexp.MustCompile(`"suite_context.go:\d+"`)
|
||||
var expected []cukeFeatureJSON
|
||||
if err := json.Unmarshal([]byte(loc.ReplaceAllString(docstring.Content, `"suite_test.go:0"`)), &expected); err != nil {
|
||||
if err := json.Unmarshal([]byte(loc.ReplaceAllString(docstring.Content, `"suite_context.go:0"`)), &expected); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
var actual []cukeFeatureJSON
|
||||
replaced := loc.ReplaceAllString(s.out.String(), `"suite_test.go:0"`)
|
||||
replaced := loc.ReplaceAllString(s.out.String(), `"suite_context.go:0"`)
|
||||
if err := json.Unmarshal([]byte(replaced), &actual); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче