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
Using assert.True on strings.Contains does not print out useful information about the arguments in the case of a failure. assert.Contains, on the other hand, will report both values on failure.
assert.Contains doesn't seem to work well with byte slices, so users would need to convert the bytes to strings. Consequently, I'm not too sure about including bytes.Contains in the same lint rule.
The text was updated successfully, but these errors were encountered:
Using
assert.True
onstrings.Contains
does not print out useful information about the arguments in the case of a failure.assert.Contains
, on the other hand, will report both values on failure.assert.Contains
doesn't seem to work well with byte slices, so users would need to convert the bytes to strings. Consequently, I'm not too sure about including bytes.Contains in the same lint rule.The text was updated successfully, but these errors were encountered: