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

Function TestSet_Effort

apps/cli/internal/cli/set_test.go:207–227  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

205}
206
207func TestSet_Effort(t *testing.T) {
208 tmpDir := createSetTestFiles(t)
209 resetSetFlags()
210 taskDir = tmpDir
211 setTaskID = "002"
212 setEffort = "small"
213
214 output, err := captureSetOutput(t)
215 if err != nil {
216 t.Fatalf("unexpected error: %v", err)
217 }
218
219 if !strings.Contains(output, "effort: large -> small") {
220 t.Errorf("Expected effort change in output, got: %s", output)
221 }
222
223 content, _ := os.ReadFile(filepath.Join(tmpDir, "002-auth.md"))
224 if !strings.Contains(string(content), "effort: small") {
225 t.Error("Expected file to contain updated effort")
226 }
227}
228
229func TestSet_Owner(t *testing.T) {
230 tmpDir := createSetTestFiles(t)

Callers

nothing calls this directly

Calls 4

createSetTestFilesFunction · 0.85
resetSetFlagsFunction · 0.85
captureSetOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected