test: add tests for ~40 untested source files #239
Labels
No labels
bug
documentation
enhancement
investigation
nice-to-have
performance
production-ready
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ash/eskit#239
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
~40 source files have no corresponding test file, including critical ones:
High priority (core logic):
handler.go— DeciderHandler, the main entry pointmemory.go— MemoryStorememory_deletion.go— deletion logicmemory_lifecycle.go— lifecycle managementeventbus_channel.go— channel-based event busdcb/memory.go— DCB memory implementationdcb/sqlite.go— DCB SQLite implementationgdpr/pii.go— PII interface detectionMedium priority:
command/dispatch.go,command/register.go,command/errors.gocommandlog/commandlog.gocodec/json.go,codec/jsoniter.go,codec/protobuf.goaudit.go,helpers.go,stream.goSome may be tested indirectly through integration tests, but direct unit tests catch edge cases and regressions.
Solution
Add test files for all untested source files. Priority: handler.go, memory.go, dcb/, gdpr/pii.go first.
Pillar: Security (untested = unverified), Developer Experience