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

Function TestBuildNotFromFork

pkg/workflow/expressions_test.go:741–749  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

739}
740
741func TestBuildNotFromFork(t *testing.T) {
742 result := BuildNotFromFork()
743 rendered := result.Render()
744
745 expected := "github.event.pull_request.head.repo.id == github.repository_id"
746 if rendered != expected {
747 t.Errorf("Expected '%s', got '%s'", expected, rendered)
748 }
749}
750
751// TestParseExpression tests the expression parser with various input patterns
752func TestParseExpression(t *testing.T) {

Callers

nothing calls this directly

Calls 3

BuildNotFromForkFunction · 0.85
RenderMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected