aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/coveragedb/coveragedb.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/coveragedb: add subsystem information about the new filesTaras Madan2026-01-051-1/+19
| | | | | Current logic updates information about the already knows files. Additionally we want to see subsystem information about all the created/added files.
* all: use any instead of interface{}Dmitry Vyukov2025-12-221-4/+4
| | | | Any is the preferred over interface{} now in Go.
* pkg/coveragedb: update file to subsystem info periodicallyTaras Madan2025-08-071-6/+51
| | | | | | #6070 explains the problem of data propagation. 1. Add weekly /cron/update_coverdb_subsystems. 2. Stop updating subsystems from coverage receiver API.
* dashboard/app: ns/cover?jsonl=1 supports manager and subsystem selectionTaras Madan2025-06-061-11/+21
| | | | | 1. Refactor handleHeatmap. 2. Introduce function options. Build them from http.Request.
* pkg/coveragedb: fix tests flakinessTaras Madan2025-02-131-2/+2
| | | | Happy path testing rely on iter.Stop() call to be done before we close errCh.
* pkg/coveragedb: fix context propagationTaras Madan2025-02-121-5/+5
|
* dashboard/app: export coverage jsonTaras Madan2025-02-061-8/+19
|
* pkg/cover: split logic, move some data processing to pkg/coveragedbTaras Madan2025-02-061-0/+228
|
* pkg/coveragedb: store information about covered file functions in dbTaras Madan2025-01-291-38/+61
|
* pkg/covermerger: stream information about covered functions to dashboardTaras Madan2025-01-291-0/+13
|
* dashboard/app: test coverage /file linkTaras Madan2025-01-271-23/+18
| | | | | | | | 1. Init coveragedb client once and propagate it through context to enable mocking. 2. Always init coverage handlers. It simplifies testing. 3. Read webGit and coveragedb client from ctx to make it mockable. 4. Use int for file line number and int64 for merged coverage. 5. Add tests.
* dashboard/app: show manager unique coverageTaras Madan2025-01-271-17/+16
| | | | | | | | | | | | 1. Make heatmap testable, move out the spanner client instantiation. 2. Generate spannerdb.ReadOnlyTransaction mocks. 3. Generate spannerdb.RowIterator mocks. 4. Generate spannerdb.Row mocks. 5. Prepare spannerdb fixture. 6. Fixed html control name + value. 7. Added multiple tests. 8. Show line coverage from selected manager. 9. Propagate coverage url params to file coverage url.
* pkg/coveragedb: fix data unpacking bugTaras Madan2024-12-201-1/+1
| | | | | | | Current tests check the amount of data transfered to the mock. But they didn't check the data correctness. Because of this bug every batch have the same coverage which is nonsense.
* pkg/coveragedb: test SaveMergeResultTaras Madan2024-12-191-0/+350
1. Make interface testable. 2. Add Spanner interfaces. 3. Generate mocks for proxy interfaces. 4. Test SaveMergeResult. 5. Test MergeCSVWriteJSONL and coveragedb.SaveMergeResult integration.