Commit 043fe32
feat: modernize codebase and improve test quality
This commit integrates improvements from several pending PRs and addresses
key user feedback:
## Template Improvements (PR #184)
- Use t.Fatalf() instead of t.Errorf() + return in subtests
- Improves test ergonomics and reduces boilerplate
- Updated golden test files to reflect new behavior
## Documentation Updates (PR #185, #180)
- Document the -named flag for map-based table tests
- Update installation from go get to go install (go get deprecated)
- Update minimum Go version to 1.16
## Use stdlib embed (PR #181)
- Replace esc/go-bindata with Go 1.16+ embed package
- Removes 834+ lines of generated code and 3rd party dependencies
- Simplifies template loading and reduces maintenance burden
- Convert symlinks in testify templates to real files for embed compatibility
Breaking Changes:
- Minimum Go version bumped from 1.6 to 1.16 (for embed support)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 9fb58b9 commit 043fe32
File tree
19 files changed
+72
-834
lines changed- .claude
- internal/render
- bindata
- templates
- templates
- testify
- testdata/goldens
19 files changed
+72
-834
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
16 | 14 | | |
| 15 | + | |
17 | 16 | | |
18 | | - | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| 41 | + | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
This file was deleted.
This file was deleted.
0 commit comments