MCPcopy Create free account
hub / github.com/diillson/chatcli / TestHandleGitChanged

Function TestHandleGitChanged

pkg/coder/engine/commands_git_test.go:123–132  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

121}
122
123func TestHandleGitChanged(t *testing.T) {
124 dir := newGitRepo(t)
125 e, out := newGitTestEngine()
126 if err := e.Execute(context.Background(), "git-changed", []string{"--dir", dir}); err != nil {
127 t.Fatalf("git-changed: %v", err)
128 }
129 if !strings.Contains(out.String(), "untracked.txt") {
130 t.Errorf("changed output = %q", out.String())
131 }
132}
133
134func TestHandleGit_BadFlag(t *testing.T) {
135 e, _ := newGitTestEngine()

Callers

nothing calls this directly

Calls 5

newGitRepoFunction · 0.85
newGitTestEngineFunction · 0.85
ErrorfMethod · 0.80
ExecuteMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected