From bad0f9715556a470d0de2a22c7040181e3a033ba Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 16 Nov 2025 00:00:00 +0000 Subject: Use actual git for tests and enhance Head --- errors_test.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 errors_test.go (limited to 'errors_test.go') 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") + } +} -- cgit v1.3.1-10-gc9f91