MCPcopy Create free account
hub / github.com/driangle/taskmd / TestContext_BothSources

Function TestContext_BothSources

apps/cli/internal/cli/context_test.go:202–220  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

200}
201
202func TestContext_BothSources(t *testing.T) {
203 tmpDir := createContextTestFiles(t)
204 resetContextFlags()
205 taskDir = tmpDir
206 setupTestConfig(t, tmpDir)
207
208 ctxTaskID = "003"
209 output, err := captureContextOutput(t)
210 if err != nil {
211 t.Fatalf("unexpected error: %v", err)
212 }
213
214 if !strings.Contains(output, "Scope files") {
215 t.Errorf("expected scope files section, got: %s", output)
216 }
217 if !strings.Contains(output, "Explicit files") {
218 t.Errorf("expected explicit files section, got: %s", output)
219 }
220}
221
222func TestContext_EmptyTask(t *testing.T) {
223 tmpDir := createContextTestFiles(t)

Callers

nothing calls this directly

Calls 4

createContextTestFilesFunction · 0.85
resetContextFlagsFunction · 0.85
setupTestConfigFunction · 0.85
captureContextOutputFunction · 0.85

Tested by

no test coverage detected