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

Function TestExpandLabelCommandShorthand

pkg/workflow/label_command_test.go:75–84  ·  view source on GitHub ↗

TestExpandLabelCommandShorthand verifies the expand helper function.

(t *testing.T)

Source from the content-addressed store, hash-verified

73
74// TestExpandLabelCommandShorthand verifies the expand helper function.
75func TestExpandLabelCommandShorthand(t *testing.T) {
76 result := expandLabelCommandShorthand("deploy")
77
78 labelCmd, ok := result["label_command"]
79 require.True(t, ok, "expanded map should have label_command key")
80 assert.Equal(t, "deploy", labelCmd, "label_command should equal the label name")
81
82 _, hasDispatch := result["workflow_dispatch"]
83 assert.True(t, hasDispatch, "expanded map should have workflow_dispatch key")
84}
85
86// TestFilterLabelCommandEvents verifies that FilterLabelCommandEvents returns correct subsets.
87func TestFilterLabelCommandEvents(t *testing.T) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected