MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestCheckGHCLI

Function TestCheckGHCLI

internal/git/push_test.go:10–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestCheckGHCLI(t *testing.T) {
11 t.Run("returns result without error", func(t *testing.T) {
12 installed, _, err := CheckGHCLI()
13 if err != nil {
14 t.Fatalf("CheckGHCLI() error = %v", err)
15 }
16 // We can't guarantee gh is installed in CI, but we can verify the function runs
17 _ = installed
18 })
19}
20
21func TestPushBranch(t *testing.T) {
22 t.Run("fails on repo without remote", func(t *testing.T) {

Callers

nothing calls this directly

Calls 2

CheckGHCLIFunction · 0.85
RunMethod · 0.80

Tested by

no test coverage detected