Files
teatea/main_test.go
ssig33 82b61a27b2
Some checks failed
CI / test (push) Has been cancelled
initial import
2025-09-11 17:30:21 +09:00

19 lines
366 B
Go

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")
}
}