MCPcopy Create free account
hub / github.com/github/gh-aw / TestReadSourceRepoFromFile_ShortSource

Function TestReadSourceRepoFromFile_ShortSource

pkg/cli/remote_workflow_test.go:1580–1586  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1578}
1579
1580func TestReadSourceRepoFromFile_ShortSource(t *testing.T) {
1581 dir := t.TempDir()
1582 f := filepath.Join(dir, "wf.md")
1583 content := "---\nsource: only-one-segment\n---\n# Workflow\n"
1584 require.NoError(t, os.WriteFile(f, []byte(content), 0644))
1585 assert.Empty(t, readSourceRepoFromFile(f), "should return empty string for malformed source")
1586}
1587
1588// ---------------------------------------------------------------------------
1589// fetchAndSaveRemoteDispatchWorkflows — conflict detection

Callers

nothing calls this directly

Calls 1

readSourceRepoFromFileFunction · 0.85

Tested by

no test coverage detected