nunnatsa / ginkgolinter

golang linter for ginkgo and gomega
MIT License
24 stars 6 forks source link

New Rule: Missing Assertion Method #84

Closed nunnatsa closed 1 year ago

nunnatsa commented 1 year ago

Description

The linter warns when calling an "actual" method (e.g. Expect(), Eventually() etc.), without an assertion method (e.g Should(), NotTo() etc.)

For example:

// no assertion for the result
Eventually(doSomething).WithTimeout(time.Seconds * 5).WithPolling(time.Milliseconds * 100)

The linter will not suggest a fix for this warning.

This rule cannot be suppressed.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

github-actions[bot] commented 1 year ago

Pull Request Test Coverage Report for Build 4906458581


Changes Missing Coverage Covered Lines Changed/Added Lines %
gomegahandler/handler.go 10 15 66.67%
<!-- Total: 42 47 89.36% -->
Totals Coverage Status
Change from base Build 4830797408: 0.2%
Covered Lines: 840
Relevant Lines: 993

💛 - Coveralls