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

Function TestReadSourceRepoFromFile_ValidSource

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

Source from the content-addressed store, hash-verified

1554}
1555
1556func TestReadSourceRepoFromFile_ValidSource(t *testing.T) {
1557 dir := t.TempDir()
1558 f := filepath.Join(dir, "wf.md")
1559 content := `---
1560source: github/gh-aw/.github/workflows/wf.md@abc123
1561---
1562# Workflow
1563`
1564 require.NoError(t, os.WriteFile(f, []byte(content), 0644))
1565 assert.Equal(t, "github/gh-aw", readSourceRepoFromFile(f), "should return owner/repo")
1566}
1567
1568func TestReadSourceRepoFromFile_NoSource(t *testing.T) {
1569 dir := t.TempDir()

Callers

nothing calls this directly

Calls 1

readSourceRepoFromFileFunction · 0.85

Tested by

no test coverage detected