Closed mmorel-35 closed 5 months ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/checkers/contains.go | 37 | 47 | 78.72% | ||
<!-- | Total: | 40 | 50 | 80.0% | --> |
Totals | |
---|---|
Change from base Build 9608177733: | -0.2% |
Covered Lines: | 2215 |
Relevant Lines: | 2370 |
I believe https://github.com/Antonboom/testifylint/issues/47
could be a subcase of contains but I'm not so confident with providing it in a error-compare rule
I beli if https://github.com/Antonboom/testifylint/issues/47
Shall be a subcase of contains or in a error-compare rule
Because of the strange use cases I reported here, I'm unsure.
But they are definitely close yes
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/checkers/contains.go | 35 | 47 | 74.47% | ||
<!-- | Total: | 38 | 50 | 76.0% | --> |
Totals | |
---|---|
Change from base Build 9608177733: | -0.3% |
Covered Lines: | 2213 |
Relevant Lines: | 2370 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/checkers/contains.go | 35 | 47 | 74.47% | ||
<!-- | Total: | 38 | 50 | 76.0% | --> |
Totals | |
---|---|
Change from base Build 9608177733: | -0.3% |
Covered Lines: | 2213 |
Relevant Lines: | 2370 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/checkers/contains.go | 39 | 47 | 82.98% | ||
<!-- | Total: | 42 | 50 | 84.0% | --> |
Totals | |
---|---|
Change from base Build 9608177733: | -0.1% |
Covered Lines: | 2217 |
Relevant Lines: | 2370 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/checkers/contains.go | 39 | 47 | 82.98% | ||
<!-- | Total: | 42 | 50 | 84.0% | --> |
Totals | |
---|---|
Change from base Build 9608177733: | -0.1% |
Covered Lines: | 2217 |
Relevant Lines: | 2370 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/checkers/contains.go | 39 | 47 | 82.98% | ||
<!-- | Total: | 42 | 50 | 84.0% | --> |
Totals | |
---|---|
Change from base Build 9608177733: | -0.1% |
Covered Lines: | 2217 |
Relevant Lines: | 2370 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/checkers/contains.go | 39 | 47 | 82.98% | ||
<!-- | Total: | 42 | 50 | 84.0% | --> |
Totals | |
---|---|
Change from base Build 9608177733: | -0.1% |
Covered Lines: | 2217 |
Relevant Lines: | 2370 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/checkers/contains.go | 39 | 47 | 82.98% | ||
<!-- | Total: | 42 | 50 | 84.0% | --> |
Totals | |
---|---|
Change from base Build 9608177733: | -0.1% |
Covered Lines: | 2217 |
Relevant Lines: | 2370 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/checkers/contains.go | 39 | 47 | 82.98% | ||
<!-- | Total: | 42 | 50 | 84.0% | --> |
Totals | |
---|---|
Change from base Build 9608177733: | -0.1% |
Covered Lines: | 2217 |
Relevant Lines: | 2370 |
LGTM 👍, a few stylistic remarks
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/checkers/contains.go | 39 | 47 | 82.98% | ||
<!-- | Total: | 42 | 50 | 84.0% | --> |
Totals | |
---|---|
Change from base Build 9608177733: | -0.1% |
Covered Lines: | 2217 |
Relevant Lines: | 2370 |
You did the changes but didn't regenerate and commit the test and golden files
I did from my phone, so I have no access to a terminal. The CI shall be doing the warning
I did from my phone, so I have no access to a terminal. The CI shall be doing the warning
yes, I agree it should. Something to be added, because it's a common mistake, I did it too.
I don't see something that could catch it right now https://github.com/Antonboom/testifylint/blob/master/.github/workflows/ci.yml
what are your thoughts @Antonboom ?
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/checkers/contains.go | 39 | 47 | 82.98% | ||
<!-- | Total: | 42 | 50 | 84.0% | --> |
Totals | |
---|---|
Change from base Build 9608177733: | -0.1% |
Covered Lines: | 2217 |
Relevant Lines: | 2370 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/checkers/contains.go | 39 | 47 | 82.98% | ||
<!-- | Total: | 42 | 50 | 84.0% | --> |
Totals | |
---|---|
Change from base Build 9608177733: | -0.1% |
Covered Lines: | 2217 |
Relevant Lines: | 2370 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/checkers/contains.go | 39 | 47 | 82.98% | ||
<!-- | Total: | 42 | 50 | 84.0% | --> |
Totals | |
---|---|
Change from base Build 9608177733: | -0.1% |
Covered Lines: | 2217 |
Relevant Lines: | 2370 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/checkers/contains.go | 39 | 47 | 82.98% | ||
<!-- | Total: | 42 | 50 | 84.0% | --> |
Totals | |
---|---|
Change from base Build 9608177733: | -0.1% |
Covered Lines: | 2217 |
Relevant Lines: | 2370 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/checkers/contains.go | 35 | 39 | 89.74% | ||
<!-- | Total: | 38 | 42 | 90.48% | --> |
Totals | |
---|---|
Change from base Build 9608177733: | 0.03% |
Covered Lines: | 2213 |
Relevant Lines: | 2362 |
Cannot run on my codebase for the moment, but LGTM 👍
I don't get where is the magic?
because of testdata
directory
Thanks I learned something today.
I had no idea the testdata folder I had on my codebase was not a convention in our codebase but something idiomatic
Closes #54