19 lines
366 B
Go
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")
|
|
}
|
|
} |