(t *testing.T)
| 739 | } |
| 740 | |
| 741 | func 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 |
| 752 | func TestParseExpression(t *testing.T) { |
nothing calls this directly
no test coverage detected