Mark function as helper to make stack traces slightly cleaner

This commit is contained in:
Michael Boulton 2020-08-14 16:24:03 +01:00
parent 90e6540bdc
commit f36992c389
No known key found for this signature in database
GPG Key ID: 8A62CA0BE2E0197E
1 changed files with 2 additions and 0 deletions

View File

@ -239,6 +239,8 @@ func checkAllCommitsSigned(t *testing.T, entity *openpgp.Entity, repo *Repositor
}
func checkCommitSigned(t *testing.T, entity *openpgp.Entity, commit *Commit) error {
t.Helper()
signature, signedData, err := commit.ExtractSignature()
if err != nil {
t.Logf("No signature on commit\n%s", commit.ContentToSign())