You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: order test functions alphabetically and document convention
Reorder test functions added on this branch alphabetically within
their files, grouping getter/setter tests under the base name.
Document the test ordering convention in MAINTAINERS_GUIDE.md and
CLAUDE.md.
funcTest_getKeyLength(t *testing.T) { ... } // package-level function
145
145
```
146
146
147
+
### Test Ordering Conventions
148
+
149
+
Test functions should be ordered alphabetically within each file. When a file has logical sections (separated by comments), tests should be alphabetical within each section. Getter and setter functions are grouped together under the base name — ignore the `Get` or `Set` prefix when determining order (e.g. `Test_AppName` and `Test_SetAppName` both sort under `A`).
150
+
147
151
### Table-Driven Test Conventions
148
152
149
153
**Preferred: Map pattern** - uses `tc` for test case variable:
0 commit comments