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

Function TestVerify_AllPass

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

Source from the content-addressed store, hash-verified

179}
180
181func TestVerify_AllPass(t *testing.T) {
182 tmpDir := createVerifyTestFiles(t)
183 resetVerifyFlags()
184 taskDir = tmpDir
185 verifyTaskID = "001"
186
187 output, err := captureVerifyOutput(t)
188 if err != nil {
189 t.Fatalf("unexpected error: %v", err)
190 }
191
192 if !strings.Contains(output, "PASS") {
193 t.Errorf("expected PASS in output, got: %s", output)
194 }
195 if !strings.Contains(output, "2 passed") {
196 t.Errorf("expected '2 passed' in output, got: %s", output)
197 }
198}
199
200func TestVerify_Fail(t *testing.T) {
201 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