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

Function TestBuildFromAllowedForksEmptyList

pkg/workflow/expression_coverage_test.go:13–17  ·  view source on GitHub ↗

TestBuildFromAllowedForksEmptyList tests BuildFromAllowedForks with empty list

(t *testing.T)

Source from the content-addressed store, hash-verified

11
12// TestBuildFromAllowedForksEmptyList tests BuildFromAllowedForks with empty list
13func TestBuildFromAllowedForksEmptyList(t *testing.T) {
14 result := BuildFromAllowedForks([]string{})
15 expected := "github.event.pull_request.head.repo.id == github.repository_id"
16 assert.Equal(t, expected, result.Render(), "BuildFromAllowedForks([]) rendered output mismatch")
17}
18
19// TestBuildFromAllowedForksSingleCondition tests BuildFromAllowedForks with single pattern
20func TestBuildFromAllowedForksSingleCondition(t *testing.T) {

Callers

nothing calls this directly

Calls 2

BuildFromAllowedForksFunction · 0.85
RenderMethod · 0.65

Tested by

no test coverage detected