franela / goblin

Minimal and Beautiful Go testing framework
MIT License
887 stars 79 forks source link

feat(assertions): add nil and zero assertions #89

Closed oswanderson closed 4 years ago

oswanderson commented 4 years ago

This pull request implements the following assertions:

IsNil that helps avoiding Assert(value != nil).IsTrue(). IsNotNil IsZero for any type, but specially useful to assert that a struct is empty. IsNotZero