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

Function TestIssueCommentRestriction

pkg/workflow/command_test.go:32–43  ·  view source on GitHub ↗

TestIssueCommentRestriction tests that issue_comment is restricted to issues only

(t *testing.T)

Source from the content-addressed store, hash-verified

30
31// TestIssueCommentRestriction tests that issue_comment is restricted to issues only
32func 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
46func TestMergeEventsForYAML(t *testing.T) {

Callers

nothing calls this directly

Calls 2

ErrorMethod · 0.45

Tested by

no test coverage detected