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

Function TestHandleGitLog

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

Source from the content-addressed store, hash-verified

80}
81
82func TestHandleGitLog(t *testing.T) {
83 dir := newGitRepo(t)
84 e, out := newGitTestEngine()
85 if err := e.Execute(context.Background(), "git-log", []string{"--dir", dir, "--limit", "5"}); err != nil {
86 t.Fatalf("git-log: %v", err)
87 }
88 if !strings.Contains(out.String(), "initial commit") {
89 t.Errorf("log output = %q", out.String())
90 }
91}
92
93func TestHandleGitDiff(t *testing.T) {
94 dir := newGitRepo(t)

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