TestIssueCommentRestriction tests that issue_comment is restricted to issues only
(t *testing.T)
| 30 | |
| 31 | // TestIssueCommentRestriction tests that issue_comment is restricted to issues only |
| 32 | func TestIssueCommentRestriction(t *testing.T) { |
| 33 | mapping := GetCommentEventByIdentifier("issue_comment") |
| 34 | if mapping == nil { |
| 35 | t.Fatal("issue_comment should be a valid event identifier") |
| 36 | } |
| 37 | if !mapping.IsIssueComment { |
| 38 | t.Error("Expected IsIssueComment to be true for issue_comment") |
| 39 | } |
| 40 | if mapping.IsPRComment { |
| 41 | t.Error("Expected IsPRComment to be false for issue_comment") |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | // TestMergeEventsForYAML tests the event merging logic for YAML generation |
| 46 | func TestMergeEventsForYAML(t *testing.T) { |
nothing calls this directly
no test coverage detected