aboutsummaryrefslogtreecommitdiff
path: root/internal/git/handler_test.go
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2022-11-25 09:43:26 -0800
committerMax Resnick <max@ofmax.li>2022-11-25 09:43:26 -0800
commit9e79e588131b0d59abefd84405cb7908bc2baa77 (patch)
treea56aa371d2c750514b66a49ed858f8329fb2c95f /internal/git/handler_test.go
parent3c1c6bc584568ecc635a0b0fa4f68f3e2e9c1528 (diff)
downloadgo-git-server-9e79e588131b0d59abefd84405cb7908bc2baa77.tar.gz
stub git backend tests, add readme notes, etc
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")
+}