We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is a valid piece of code I have in my code base
There is a function that returns an int32, the tests checks if the value is under the max of int16
Here is the minimum to reproduce the issue
val := int32(42) require.True(t, val <= math.MaxInt16)
The code is autofixed to this
val := int32(42) require.LessOrEqual(t, val, math.MaxInt16)
Which is valid, BUT then require.LessOrEqual will report that val(int32) is not from the same type as math.MaxInt16) (an untyped int)
require.LessOrEqual
math.MaxInt16)
Error: Elements should be the same type
Yes, the code could have been written in a another way, but testifylint provided something that cannot work.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Here is a valid piece of code I have in my code base
There is a function that returns an int32, the tests checks if the value is under the max of int16
Here is the minimum to reproduce the issue
The code is autofixed to this
Which is valid, BUT then
require.LessOrEqual
will report that val(int32) is not from the same type asmath.MaxInt16)
(an untyped int)Yes, the code could have been written in a another way, but testifylint provided something that cannot work.
The text was updated successfully, but these errors were encountered: