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

Function assertFileEntry

apps/cli/internal/taskcontext/resolve_test.go:576–587  ·  view source on GitHub ↗
(t *testing.T, f FileEntry, path, source string, exists bool)

Source from the content-addressed store, hash-verified

574}
575
576func assertFileEntry(t *testing.T, f FileEntry, path, source string, exists bool) {
577 t.Helper()
578 if f.Path != path {
579 t.Errorf("path: want %q, got %q", path, f.Path)
580 }
581 if f.Source != source {
582 t.Errorf("source: want %q, got %q", source, f.Source)
583 }
584 if f.Exists != exists {
585 t.Errorf("exists: want %v, got %v", exists, f.Exists)
586 }
587}

Callers 4

TestResolve_TouchesOnlyFunction · 0.85
TestResolve_ContextOnlyFunction · 0.85
TestResolve_BothSourcesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected