Fix step definition output for Data Tables (#411)
* Fix step definition output for Data Tables This fixes incorrect step definition output for Data Tables. The PickleStepArgument_PickleTable type does not exist in the current messages-go version. * updated CHANGELOG.md
Этот коммит содержится в:
родитель
15358d20e7
коммит
7d343d4e35
2 изменённых файлов: 2 добавлений и 1 удалений
|
@ -23,6 +23,7 @@ This document is formatted according to the principles of [Keep A CHANGELOG](htt
|
|||
### Removed
|
||||
|
||||
### Fixed
|
||||
* Incorrect step definition output for Data Tables ([411](https://github.com/cucumber/godog/pull/411) - [karfrank])
|
||||
|
||||
## [v0.11.0]
|
||||
|
||||
|
|
|
@ -145,7 +145,7 @@ func (sd *StepDefinition) Run() interface{} {
|
|||
break
|
||||
}
|
||||
|
||||
return fmt.Errorf(`%w %d: "%v" of type "%T" to *messages.PickleStepArgument_PickleTable`, ErrCannotConvert, i, arg, arg)
|
||||
return fmt.Errorf(`%w %d: "%v" of type "%T" to *messages.PickleTable`, ErrCannotConvert, i, arg, arg)
|
||||
default:
|
||||
return fmt.Errorf("%w: the argument %d type %T is not supported %s", ErrUnsupportedArgumentType, i, arg, param.Elem().String())
|
||||
}
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче