update llm.txt

This commit is contained in:
2025-12-18 15:08:28 +08:00
parent 5fe669fef6
commit 22ac78fce1

View File

@@ -255,6 +255,7 @@ This section is framework-agnostic and applies to any Go service layer (regardle
- Prefer `*_test.go` with table-driven tests and subtests: `t.Run("case", func(t *testing.T) { ... })`.
- Prefer testing the public API from an external package (`package xxx_test`) unless you must access unexported helpers.
- Avoid “focused” tests in committed code (e.g. `FocusConvey`, `FIt`, `fit`, `it.only`, or equivalent), because they silently skip other tests.
- MUST: in service layer tests, **one test method should focus on one service method** only (e.g. `Test_Freeze` covers `Ledger.Freeze`, `Test_Unfreeze` covers `Ledger.Unfreeze`); do not bundle multiple service methods into a single `Test_*` method.
### 5.4 Isolation rules