summaryrefslogtreecommitdiff
path: root/internal/verify
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-04-17 10:44:41 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2023-04-18 14:05:19 +0200
commitaac05c4f0ec872ebf6d4568e5590f303cf124568 (patch)
tree35f3e2f749036f1b1c6e4fc20ff5c8bda0486130 /internal/verify
parentd77619284f8d935a1ccea8be48bd315d9956754f (diff)
Verify Test: Use callStr on error
Diffstat (limited to 'internal/verify')
-rw-r--r--internal/verify/verify_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/verify/verify_test.go b/internal/verify/verify_test.go
index 36f4189..cbc6cb9 100644
--- a/internal/verify/verify_test.go
+++ b/internal/verify/verify_test.go
@@ -356,27 +356,27 @@ func compareResults(
if expectedErrPrefix == "" {
// we don't expect any error
if err != nil {
- t.Errorf("error not expected but returned '%s'", err.Error())
+ t.Errorf("error not expected but returned '%s', callstr '%s'", err.Error(), callStr())
}
if !ret {
- t.Errorf("error is nil and result is false")
+ t.Errorf("error is nil and result is false, callstr '%s'", callStr())
}
return
}
if err == nil {
// we expect an error but received nil
- t.Errorf("expected error prefix '%s' but received nil", expectedErrPrefix)
+ t.Errorf("expected error prefix '%s' but received nil, callstr '%s'", expectedErrPrefix, callStr())
return
}
if !strings.HasPrefix(err.Error(), expectedErrPrefix) {
// wrong error
- t.Errorf("expected error prefix '%s' for error '%s'", expectedErrPrefix, err.Error())
+ t.Errorf("expected error prefix '%s' for error '%s', callStr '%s'", expectedErrPrefix, err.Error(), callStr())
return
}
if ret {
- t.Errorf("error is not nil and result is true")
+ t.Errorf("error is not nil and result is true, callStr '%s'", callStr())
}
}