(t *testing.T)
| 1566 | } |
| 1567 | |
| 1568 | func TestReadSourceRepoFromFile_NoSource(t *testing.T) { |
| 1569 | dir := t.TempDir() |
| 1570 | f := filepath.Join(dir, "wf.md") |
| 1571 | content := "---\non: push\n---\n# No source\n" |
| 1572 | require.NoError(t, os.WriteFile(f, []byte(content), 0644)) |
| 1573 | assert.Empty(t, readSourceRepoFromFile(f), "should return empty string when no source field") |
| 1574 | } |
| 1575 | |
| 1576 | func TestReadSourceRepoFromFile_MissingFile(t *testing.T) { |
| 1577 | assert.Empty(t, readSourceRepoFromFile("/nonexistent/file.md"), "should return empty string for missing file") |
nothing calls this directly
no test coverage detected