Closed nunnatsa closed 1 year ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
ginkgo_linter.go | 33 | 43 | 76.74% | ||
<!-- | Total: | 33 | 43 | 76.74% | --> |
Totals | |
---|---|
Change from base Build 4468363662: | 0.2% |
Covered Lines: | 698 |
Relevant Lines: | 839 |
Description
When comparing len() result with a number, the linter used to wrongly fix
Expect(len(x) == 5).To(BeTrue())
toExpect(len(x)).To(Equal(5))
, which is also a wrong pattern.This PR fixes this bug and fix the wrong patter to
Expect(x).To(HaveLen(5))
Note: this is only for equal or not-equal comparison.
Type of change
How Has This Been Tested?
Checklist: