Skip to content

v0.17.0

Compare
Choose a tag to compare
@nunnatsa nunnatsa released this 29 Oct 06:49
· 22 commits to main since this release

What's Changed

  • Bug fix: missing async validations

    • the linter now checks error with nil assertion also in async assertions as well, such as:
      Eventually(func() err {return nil}).Should(BeNil())
    • the linter now checks for MatchError issues in async assertions as well, e.g.
      Eventually(func() string {return "hello"}).Should(MatchError("hello"))
  • Bug fix: handle Equal(true/false) in Expect(p == nil).To(Equal(true/false)) even when nil assertion is suppressed; e.g.

    Expect(p == nil).To(Equal(true))
    // will be changed to:
    Expect(p == nil).To(BeTrue())
  • Bug fix: force Expect with To rule now also checks ExpectWithOffset(); e.g.

    ExpectWithOffset(err).ShouldNot(HaveOccurred())
    // will be changed to:
    ExpectWithOffset(err).ToNot(HaveOccurred())
  • Bump go to v1.22

  • [internal] Huge Refactoring

    • separate parsing and processing from validation
    • introduce gomega expression Rules

Full Changelog: v0.16.2...v0.17.0