(t *testing.T)
| 200 | } |
| 201 | |
| 202 | func TestBuildDispatchLabelCommandCondition(t *testing.T) { |
| 203 | condition, err := buildDispatchLabelCommandCondition([]string{"cloclo"}, []string{"issues"}) |
| 204 | require.NoError(t, err) |
| 205 | rendered := condition.Render() |
| 206 | assert.NotContains(t, rendered, "github.event_name") |
| 207 | assert.Contains(t, rendered, "fromJSON(github.event.inputs.aw_context || '{}').event_type == 'issues'") |
| 208 | assert.Contains(t, rendered, "fromJSON(github.event.inputs.aw_context || '{}').trigger_label == 'cloclo'") |
| 209 | } |
| 210 | |
| 211 | // TestLabelCommandWorkflowCompile verifies that a workflow with label_command trigger |
| 212 | // compiles to a valid GitHub Actions workflow with: |
nothing calls this directly
no test coverage detected