The only way to check how many entries have been recorded is len(audit.entries), which copies the internal list unnecessarily.
Expected behavior:
audit = AuditLog()
audit.record(result)
assert audit.entry_count == 1
What needs to change:
Add an entry_count property to AuditLog in gateframe/audit/log.py that returns len(self._entries) directly.
A test in tests/audit/test_log.py should verify the count increments correctly.
The only way to check how many entries have been recorded is len(audit.entries), which copies the internal list unnecessarily.
Expected behavior:
What needs to change:
Add an entry_count property to AuditLog in
gateframe/audit/log.pythat returnslen(self._entries)directly.A test in
tests/audit/test_log.pyshould verify the count increments correctly.