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

Function TestPushBranch

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

Source from the content-addressed store, hash-verified

19}
20
21func TestPushBranch(t *testing.T) {
22 t.Run("fails on repo without remote", func(t *testing.T) {
23 dir := initTestRepo(t)
24 err := PushBranch(dir, "main")
25 if err == nil {
26 t.Error("PushBranch() expected error for repo without remote, got nil")
27 }
28 })
29}
30
31func TestDeleteBranch(t *testing.T) {
32 t.Run("deletes existing branch", func(t *testing.T) {

Callers

nothing calls this directly

Calls 3

initTestRepoFunction · 0.85
PushBranchFunction · 0.85
RunMethod · 0.80

Tested by

no test coverage detected