(root string, state *watch.State)
| 596 | } |
| 597 | |
| 598 | func resolveRepoFileCount(root string, state *watch.State) int { |
| 599 | if state != nil && state.FileCount > 0 { |
| 600 | return state.FileCount |
| 601 | } |
| 602 | |
| 603 | gitCache := scanner.NewGitIgnoreCache(root) |
| 604 | files, err := scanner.ScanFiles(root, gitCache, nil, nil) |
| 605 | if err != nil { |
| 606 | return 0 |
| 607 | } |
| 608 | return len(files) |
| 609 | } |
| 610 | |
| 611 | func dependencyImportersForHandoff(root string, state *watch.State, fileCount int) map[string][]string { |
| 612 | if state != nil && len(state.Importers) > 0 { |
no test coverage detected