(t *testing.T)
| 81 | } |
| 82 | |
| 83 | func TestFetchLocalWorkflow_NonExistentFile(t *testing.T) { |
| 84 | spec := &WorkflowSpec{ |
| 85 | WorkflowPath: "/nonexistent/path/to/workflow.md", |
| 86 | WorkflowName: "nonexistent-workflow", |
| 87 | } |
| 88 | |
| 89 | result, err := fetchLocalWorkflow(spec, false) |
| 90 | |
| 91 | require.Error(t, err, "should error for non-existent file") |
| 92 | assert.Nil(t, result, "result should be nil on error") |
| 93 | assert.Contains(t, err.Error(), "not found", "error should mention file not found") |
| 94 | } |
| 95 | |
| 96 | func TestFetchLocalWorkflow_DirectoryInsteadOfFile(t *testing.T) { |
| 97 | tempDir := t.TempDir() |
nothing calls this directly
no test coverage detected