Skip to content

Commit

Permalink
removed redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnlon committed Oct 11, 2024
1 parent 2851083 commit 35aa139
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions internal/models/stepdef_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,24 +372,6 @@ func TestShouldSupportGherkinTable(t *testing.T) {
assert.Equal(t, expectedTable, actualTable)
}

func TestShouldNotSupportOtherPointerTypes(t *testing.T) {
fn1 := func(a *int) {
assert.Fail(t, "shound not be called")
}

def := &models.StepDefinition{
StepDefinition: formatters.StepDefinition{
Handler: fn1,
},
HandlerValue: reflect.ValueOf(fn1),
Args: []interface{}{"UTTERLY IGNORED"},
}

_, err := def.Run(context.Background())
assert.Equal(t, "func has unsupported parameter type: the data type of parameter 0 type *int is not supported", err.(error).Error())
assert.True(t, errors.Is(err.(error), models.ErrUnsupportedParameterType))
}

func TestShouldSupportOnlyByteSlice(t *testing.T) {
var aActual []byte
fn1 := func(a []byte) {
Expand Down

0 comments on commit 35aa139

Please sign in to comment.