mirror of
https://github.com/mudler/LocalAI
synced 2026-05-24 09:28:23 +00:00
The initial test file used the stdlib testing package (t.Fatalf / t.Errorf), which is forbidden by the forbidigo linter rule in .golangci.yml — LocalAI mandates Ginkgo/Gomega for all Go tests (see .agents/coding-style.md). Restructured the same six scenarios into Describe / Context / It blocks, with a chathistory_suite_test.go bootstrap that registers the Ginkgo fail handler. Test coverage is unchanged: basic CRUD round-trip, cross- instance persistence, user isolation, unsafe ID rejection (now via DescribeTable), bulk replace overwrite, and the anonymous fallback path. Assisted-by: Claude:claude-opus-4-7 Signed-off-by: TLoE419 <tloemizuchizu@gmail.com> |
||
|---|---|---|
| .. | ||
| advisorylock | ||
| agentpool | ||
| agents | ||
| chathistory | ||
| dbutil | ||
| distributed | ||
| facerecognition | ||
| finetune | ||
| galleryop | ||
| jobs | ||
| mcp | ||
| messaging | ||
| modeladmin | ||
| monitoring | ||
| nodes | ||
| quantization | ||
| skills | ||
| storage | ||
| testutil | ||
| voicerecognition | ||
| worker | ||