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

Function TestVerify_Assert

apps/cli/internal/cli/verify_test.go:222–239  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

220}
221
222func TestVerify_Assert(t *testing.T) {
223 tmpDir := createVerifyTestFiles(t)
224 resetVerifyFlags()
225 taskDir = tmpDir
226 verifyTaskID = "003"
227
228 output, err := captureVerifyOutput(t)
229 if err != nil {
230 t.Fatalf("unexpected error: %v", err)
231 }
232
233 if !strings.Contains(output, "PEND") {
234 t.Errorf("expected PEND in output, got: %s", output)
235 }
236 if !strings.Contains(output, "1 pending") {
237 t.Errorf("expected '1 pending' in output, got: %s", output)
238 }
239}
240
241func TestVerify_Mixed(t *testing.T) {
242 tmpDir := createVerifyTestFiles(t)

Callers

nothing calls this directly

Calls 3

createVerifyTestFilesFunction · 0.85
resetVerifyFlagsFunction · 0.85
captureVerifyOutputFunction · 0.85

Tested by

no test coverage detected