TestBuildFromAllowedForksEmptyList tests BuildFromAllowedForks with empty list
(t *testing.T)
| 11 | |
| 12 | // TestBuildFromAllowedForksEmptyList tests BuildFromAllowedForks with empty list |
| 13 | func 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 |
| 20 | func TestBuildFromAllowedForksSingleCondition(t *testing.T) { |
nothing calls this directly
no test coverage detected