databricks-cli/libs/testdiff
Denis Bilenko 26f527ef64
Fix incorrect TestingT.Errorf usage and enable linting for this (#2182)
## Changes
- Fix incorrect use Errorf on literal string. This resulted in garbage
output in tests diagnostics where % was replaced by "(MISSING)".
- Enable linter on testingT.Errorf.

Note, the autofix by the linter is wrong, it proposes `t.Errorf("%s",
string)` but it should be `t.Error(string)`. That can corrected manually
though.

## Tests
Linter was tested manually by reverting the fix on Errorf.
2025-01-20 08:07:42 +00:00
..
context.go Use regular expressions for testdiff replacements (#2151) 2025-01-15 12:15:23 +01:00
context_test.go Use regular expressions for testdiff replacements (#2151) 2025-01-15 12:15:23 +01:00
golden.go Use regular expressions for testdiff replacements (#2151) 2025-01-15 12:15:23 +01:00
replacement.go Introduce $DATABRICKS_URL replacement in tests (#2158) 2025-01-15 17:24:12 +01:00
replacement_test.go Use regular expressions for testdiff replacements (#2151) 2025-01-15 12:15:23 +01:00
testdiff.go Fix incorrect TestingT.Errorf usage and enable linting for this (#2182) 2025-01-20 08:07:42 +00:00
testdiff_test.go Add tests for default-python template on different Python versions (#2025) 2024-12-20 14:40:54 +00:00