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

Function TestCmdShowTaskFloating

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

Source from the content-addressed store, hash-verified

149}
150
151func TestCmdShowTaskFloating(t *testing.T) {
152 root, db := showListEditDB(t)
153 insertTask(t, db, "readme-pass", "Read", "backlog", "low", filepath.Join(root, "tasks", "readme-pass", "workspace"), nil)
154 out := captureStdout(t, func() {
155 if rc := cmdShow([]string{"task", "readme-pass"}); rc != 0 {
156 t.Errorf("rc=%d", rc)
157 }
158 })
159 if !strings.Contains(out, "project: (floating)") {
160 t.Errorf("expected floating marker; out=%q", out)
161 }
162}
163
164func TestCmdShowTaskDefaultsFromEnv(t *testing.T) {
165 root, db := showListEditDB(t)

Callers

nothing calls this directly

Calls 4

showListEditDBFunction · 0.85
captureStdoutFunction · 0.85
cmdShowFunction · 0.85
insertTaskFunction · 0.70

Tested by

no test coverage detected