in-toto / attestation

in-toto Attestation Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use `errors.Is()` in Golang tests

marcelamelara opened this issue · comments

Instead of using the assert.Error() function, which checks that an error occurred, in a future where our validation functions return more errors, we might also use errors.Is() to check that we get the same error back.

Originally posted by @pxp928 in #220 (comment)