BuildOpts are the injectable inputs to BuildStats (paths injected so tests can point at temp dirs).
| 40 | // BuildOpts are the injectable inputs to BuildStats (paths injected so |
| 41 | // tests can point at temp dirs). |
| 42 | type BuildOpts struct { |
| 43 | Root string |
| 44 | ClaudeProjects string |
| 45 | DB *sql.DB |
| 46 | Cache *Cache |
| 47 | Constants Constants |
| 48 | Since time.Time // zero = all-time |
| 49 | Project string // "" = all |
| 50 | } |
| 51 | |
| 52 | // BuildStats derives a Stats from flow.db + transcripts + on-disk dirs. |
| 53 | func BuildStats(o BuildOpts) (Stats, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected