TestExtractDispatchWorkflowNames_MapFormat verifies that workflow names are extracted from the dispatch-workflow map format (with explicit workflows key).
(t *testing.T)
| 708 | // TestExtractDispatchWorkflowNames_MapFormat verifies that workflow names are extracted |
| 709 | // from the dispatch-workflow map format (with explicit workflows key). |
| 710 | func TestExtractDispatchWorkflowNames_MapFormat(t *testing.T) { |
| 711 | content := `--- |
| 712 | engine: copilot |
| 713 | safe-outputs: |
| 714 | dispatch-workflow: |
| 715 | workflows: |
| 716 | - workflow-x |
| 717 | - workflow-y |
| 718 | --- |
| 719 | |
| 720 | # Workflow |
| 721 | ` |
| 722 | names := extractDispatchWorkflowNames(content) |
| 723 | assert.Equal(t, []string{"workflow-x", "workflow-y"}, names, "should extract workflow names from map format") |
| 724 | } |
| 725 | |
| 726 | // TestExtractDispatchWorkflowNames_SkipMacros verifies that workflow names containing |
| 727 | // GitHub Actions expression syntax are filtered out. |
nothing calls this directly
no test coverage detected