Closed sagikazarmark closed 4 years ago
thanks for your contribution!
I think we can remove the context package in v2.0.
IMO we can make NewContext
unexported.
Oh, it looks like we cannot make NewContext
unexported, if we want to keep New
in the context package.
please fix linter issues and I can merge it
One of the failing lint rules seems to be false positive.
gobdd.go:415:38: `t` can be `github.com/stretchr/testify/assert.TestingT` (interfacer)
func (def *stepDef) run(ctx Context, t TestingT, params [][]byte) {
I think this is false positive. I can either disable linting in this line with // nolint: interfacer
, or disable the interfacer linter entirely.
@sagikazarmark let's disable it for this line for now. If we'll have more problems like that we can disable it entirely.
@sagikazarmark you don't have to rebase commits because I squash and merge them anyway :)
Thanks for your contribution!
Fixes #96
This is a fully backwards compatible change by adding aliases for the necessary type (Context).
ToDos
NewContext
does not have to be exported. Should it be?Possible alternatives