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

Function TestSourceRepoLabel_NonEmpty

pkg/cli/remote_workflow_test.go:1548–1550  ·  view source on GitHub ↗

--------------------------------------------------------------------------- readSourceRepoFromFile ---------------------------------------------------------------------------

(t *testing.T)

Source from the content-addressed store, hash-verified

1546// ---------------------------------------------------------------------------
1547
1548func TestSourceRepoLabel_NonEmpty(t *testing.T) {
1549 assert.Equal(t, "github/gh-aw", sourceRepoLabel("github/gh-aw"), "non-empty repo should pass through")
1550}
1551
1552func TestSourceRepoLabel_Empty(t *testing.T) {
1553 assert.Equal(t, "(no source field)", sourceRepoLabel(""), "empty repo should return placeholder label")

Callers

nothing calls this directly

Calls 1

sourceRepoLabelFunction · 0.85

Tested by

no test coverage detected