MCPcopy Create free account
hub / github.com/astercloud/aster / mockAuditLog

Struct mockAuditLog

pkg/security/access_control_test.go:12–14  ·  view source on GitHub ↗

mockAuditLog 用于测试的审计日志

Source from the content-addressed store, hash-verified

10
11// mockAuditLog 用于测试的审计日志
12type mockAuditLog struct {
13 events []AuditEvent
14}
15
16func (m *mockAuditLog) LogEvent(event AuditEvent) error {
17 m.events = append(m.events, event)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected