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

Function TestCmdShowTaskUnknown

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

Source from the content-addressed store, hash-verified

200}
201
202func TestCmdShowTaskUnknown(t *testing.T) {
203 _, _ = showListEditDB(t)
204 out := captureStdout(t, func() {
205 if rc := cmdShow([]string{"task", "nope"}); rc != 1 {
206 t.Errorf("rc=%d, want 1", rc)
207 }
208 })
209 if !strings.Contains(out, "no task matching") {
210 t.Errorf("missing error; out=%q", out)
211 }
212}
213
214func TestCmdShowTaskNoSubstringMatch(t *testing.T) {
215 root, db := showListEditDB(t)

Callers

nothing calls this directly

Calls 3

showListEditDBFunction · 0.85
captureStdoutFunction · 0.85
cmdShowFunction · 0.85

Tested by

no test coverage detected