aboutsummaryrefslogtreecommitdiff
path: root/errors_test.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-16 00:00:00 +0000
committerGravatar Runxi Yu2025-11-16 00:00:00 +0000
commitbad0f9715556a470d0de2a22c7040181e3a033ba (patch)
tree21463072ce5bc85682a887ce0cae26d833941af3 /errors_test.go
parentEntryRecursive should return ErrNotFound instead of nil, nil (diff)
signature
Use actual git for tests and enhance Head
Diffstat (limited to 'errors_test.go')
-rw-r--r--errors_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/errors_test.go b/errors_test.go
new file mode 100644
index 00000000..29803f97
--- /dev/null
+++ b/errors_test.go
@@ -0,0 +1,17 @@
+package furgit
+
+import (
+ "testing"
+)
+
+func TestErrors(t *testing.T) {
+ if ErrInvalidObject == nil {
+ t.Error("ErrInvalidObject should not be nil")
+ }
+ if ErrInvalidRef == nil {
+ t.Error("ErrInvalidRef should not be nil")
+ }
+ if ErrNotFound == nil {
+ t.Error("ErrNotFound should not be nil")
+ }
+}