Open Limero opened 3 months ago
Thanks for reporting the issue. It's about a false-negative, so it's a good news.
I'm unsure what testifylint should do here, we might have to discuss about it.
But here are some real life examples
At least the pattern is frequently used
In a large codebase at work I noticed that people sometimes compare the values of two
len()
withEqual
, something thattestifylint
v1.4.3 currently doesn't detect. It should suggest usingassert.Len()
the same as if you compare with a const, i.e.assert.Equal(t, len(expected), 2)
Expected results: