initial import
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
2025-09-11 17:30:21 +09:00
commit 82b61a27b2
7 changed files with 370 additions and 0 deletions

19
main_test.go Normal file
View File

@@ -0,0 +1,19 @@
package main
import (
"testing"
)
func TestIsGitRepository(t *testing.T) {
result := isGitRepository()
if !result {
t.Errorf("isGitRepository() = false in a git repository")
}
}
func TestRemoteExists(t *testing.T) {
result := remoteExists("nonexistent-remote-xyz")
if result {
t.Errorf("remoteExists(\"nonexistent-remote-xyz\") = true, want false")
}
}