TestExpandLabelCommandShorthand verifies the expand helper function.
(t *testing.T)
| 73 | |
| 74 | // TestExpandLabelCommandShorthand verifies the expand helper function. |
| 75 | func 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. |
| 87 | func TestFilterLabelCommandEvents(t *testing.T) { |
nothing calls this directly
no test coverage detected