aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/validator/validator_test.go
Commit message (Collapse)AuthorAgeFilesLines
* all: remove unused nolint directivesDmitry Vyukov2026-01-021-2/+0
|
* dashboard/app: show manager unique coverageTaras Madan2025-01-271-0/+18
| | | | | | | | | | | | 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/validator: fix regexp mistakeTaras Madan2024-11-071-3/+4
| | | | | | | | The main problem - kernel file path may contain "-". Let's allow it. Side problems: 1. Two -- are better to be blocked. It may be used as an SQL comment. 2. Some regexp engines consider "-" as a range. Let's move it to the end.
* pkg/validator: target value is not empty by defaultTaras Madan2024-09-301-0/+2
| | | | | | The consistency make the code more predictable. We want all the values to be non-empty. If "empty" is an option - use validator.AnyOk(validator.EmptyStr(target), otherCheck(target)).
* pkg/validator: initial codeTaras Madan2024-08-221-0/+85