Antonboom / testifylint

The Golang linter that checks usage of github.com/stretchr/testify.
https://github.com/stretchr/testify
MIT License
101 stars 8 forks source link

contains: support `Contains` for byte slice #154

Open Antonboom opened 5 months ago

Antonboom commented 5 months ago
{Fn: "True", Argsf: `bytes.Contains(b, []byte("a"))`},
{Fn: "False", Argsf: `!bytes.Contains(b, []byte("a"))`},
{Fn: "False", Argsf: `bytes.Contains(b, []byte("a"))`},
{Fn: "True", Argsf: `!bytes.Contains(b, []byte("a"))`},

Is blocked by https://github.com/stretchr/testify/pull/1526

ccoVeille commented 5 months ago

Oh that's right but currently being addressed