You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In line 353 of gobdd.go file we have (inside the method getOutlineStep :
if len(stepsList) == 0 {
return newSteps
}
However in line 360 we have
newSteps = append(newSteps, stepsList[si][ci])
So, whenever stepsList comes with a "nil" inside first position, like stepsList = [nil], this will result in a seg fault. I'm just facing it while trying to parse this feature file step:
Given The setup with <param1> and <param2> :
Examples:
| param1 | param2 |
| False | True |
With this gobdd code:
func getSetup_outlinetest(t gobdd.StepTest, ctx gobdd.Context) {}
func TestScenarios(t *testing.T) {
suite := gobdd.NewSuite(t, gobdd.WithFeaturesPath(PATH))
suite.AddStep(`The setup with <param1> and <param2> :`, getSetup_outlinetest)
suite.Run()
Running this test is resulting in a seg fault / panic.
The text was updated successfully, but these errors were encountered:
Current version: v.1.1.3
In line 353 of gobdd.go file we have (inside the method
getOutlineStep
:However in line 360 we have
So, whenever
stepsList
comes with a "nil" inside first position, likestepsList = [nil]
, this will result in a seg fault. I'm just facing it while trying to parse thisfeature
file step:With this gobdd code:
Running this test is resulting in a seg fault / panic.
The text was updated successfully, but these errors were encountered: