aboutsummaryrefslogtreecommitdiff
path: root/internal/git/handler_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/git/handler_test.go')
-rw-r--r--internal/git/handler_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/internal/git/handler_test.go b/internal/git/handler_test.go
new file mode 100644
index 0000000..88267b9
--- /dev/null
+++ b/internal/git/handler_test.go
@@ -0,0 +1,14 @@
+package git
+
+import (
+ "os"
+ "testing"
+)
+
+func TestGitHandler(t *testing.T) {
+ dir, err := os.MkdirTemp("", "go-git-tests")
+ if err != nil {
+ t.Fatalf("Couldn't create a temp directory for tests: %s", err)
+ }
+ _ := GitHttpBackendHandler(dir, "git http-backend")
+}