vektra / mockery

A mock code autogenerator for Go
https://vektra.github.io/mockery/
BSD 3-Clause "New" or "Revised" License
6.15k stars 412 forks source link

Refactor test asserts #831

Closed alexandear closed 3 weeks ago

alexandear commented 3 weeks ago

Description

The PR refactors tests by simplifying asserts: swap actual-expected parameters, use assert.Len, assert.Greater etc. Additionally, enables testifylint to suggests these in a future.

Type of change

Version of Go used when building/testing:

How Has This Been Tested?

Run unit tests.

Checklist