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

Function TestReviewChangesScript

cli/agent/workers/scripts_test.go:145–157  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

143}
144
145func TestReviewChangesScript(t *testing.T) {
146 result, err := reviewChangesScript(context.Background(), map[string]string{}, nil)
147 _ = err
148 if result == "" {
149 t.Error("expected non-empty result from reviewChangesScript")
150 }
151 if !strings.Contains(result, "Changed Files") {
152 t.Error("expected 'Changed Files' section in result")
153 }
154 if !strings.Contains(result, "Recent Commits") {
155 t.Error("expected 'Recent Commits' section in result")
156 }
157}
158
159func TestRunTestsScript(t *testing.T) {
160 // runTestsScript runs "test --dir ." via engine.

Callers

nothing calls this directly

Calls 2

reviewChangesScriptFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected