TestExtractDispatchWorkflowNames_AllMacros verifies that all-macro lists return an empty slice.
(t *testing.T)
| 772 | |
| 773 | // TestExtractDispatchWorkflowNames_AllMacros verifies that all-macro lists return an empty slice. |
| 774 | func TestExtractDispatchWorkflowNames_AllMacros(t *testing.T) { |
| 775 | content := `--- |
| 776 | engine: copilot |
| 777 | safe-outputs: |
| 778 | dispatch-workflow: |
| 779 | - ${{ github.event.inputs.workflow }} |
| 780 | - ${{ vars.WORKFLOW }} |
| 781 | --- |
| 782 | |
| 783 | # Workflow |
| 784 | ` |
| 785 | names := extractDispatchWorkflowNames(content) |
| 786 | assert.Empty(t, names, "should return empty slice when all workflow names are macros") |
| 787 | } |
| 788 | |
| 789 | // --- fetchAndSaveRemoteDispatchWorkflows tests --- |
| 790 |
nothing calls this directly
no test coverage detected