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

Function TestShowTaskNoAuxFiles

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

Source from the content-addressed store, hash-verified

547}
548
549func TestShowTaskNoAuxFiles(t *testing.T) {
550 setupFlowRoot(t)
551 wd := t.TempDir()
552 if rc := cmdAdd([]string{"task", "Bar", "--slug", "bar", "--work-dir", wd}); rc != 0 {
553 t.Fatal()
554 }
555 out := captureShowStdout(t, func() {
556 if rc := cmdShow([]string{"task", "bar"}); rc != 0 {
557 t.Fatal()
558 }
559 })
560 if !strings.Contains(out, "other:") {
561 t.Errorf("expected 'other:' section even when empty, got:\n%s", out)
562 }
563}
564
565func TestShowProjectListsAuxFiles(t *testing.T) {
566 root := setupFlowRoot(t)

Callers

nothing calls this directly

Calls 4

setupFlowRootFunction · 0.85
cmdAddFunction · 0.85
captureShowStdoutFunction · 0.85
cmdShowFunction · 0.85

Tested by

no test coverage detected