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

Function TestSet_PositionalArgAndFlagSameValue

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

Source from the content-addressed store, hash-verified

1176}
1177
1178func TestSet_PositionalArgAndFlagSameValue(t *testing.T) {
1179 tmpDir := createSetTestFiles(t)
1180 resetSetFlags()
1181 taskDir = tmpDir
1182 setTaskID = "001"
1183 setStatus = "completed"
1184
1185 output, err := captureSetOutputWithArgs(t, []string{"001"})
1186 if err != nil {
1187 t.Fatalf("unexpected error: %v", err)
1188 }
1189
1190 if !strings.Contains(output, "Updated task 001") {
1191 t.Error("Expected confirmation message")
1192 }
1193}
1194
1195func TestSet_PositionalArgAndFlagConflict(t *testing.T) {
1196 tmpDir := createSetTestFiles(t)

Callers

nothing calls this directly

Calls 4

createSetTestFilesFunction · 0.85
resetSetFlagsFunction · 0.85
captureSetOutputWithArgsFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected