MCPcopy Create free account
hub / github.com/Facets-cloud/flow / TestCmdShowTaskMissingDefault

Function TestCmdShowTaskMissingDefault

internal/app/show_test.go:189–200  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

187}
188
189func TestCmdShowTaskMissingDefault(t *testing.T) {
190 _, _ = showListEditDB(t)
191 t.Setenv("CLAUDE_CODE_SESSION_ID", "")
192 out := captureStdout(t, func() {
193 if rc := cmdShow([]string{"task"}); rc != 1 {
194 t.Errorf("rc=%d, want 1", rc)
195 }
196 })
197 if !strings.Contains(out, "CLAUDE_CODE_SESSION_ID") {
198 t.Errorf("missing env hint; out=%q", out)
199 }
200}
201
202func TestCmdShowTaskUnknown(t *testing.T) {
203 _, _ = showListEditDB(t)

Callers

nothing calls this directly

Calls 3

showListEditDBFunction · 0.85
captureStdoutFunction · 0.85
cmdShowFunction · 0.85

Tested by

no test coverage detected