MCPcopy Index your code
hub / github.com/coder/coder / NewMock

Function NewMock

coderd/audit/audit.go:41–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41func NewMock() *MockAuditor {
42 return &MockAuditor{}
43}
44
45type MockAuditor struct {
46 mutex sync.Mutex

Callers 15

TestUserSecretAuditFunction · 0.92
TestGitSSHKeyFunction · 0.92
TestTokenCRUDFunction · 0.92
TestAPIKey_OKFunction · 0.92
TestExpireAPIKeyFunction · 0.92
TestUserOAuth2GithubFunction · 0.92
TestUserOIDCFunction · 0.92
TestPostChatsFunction · 0.92
TestPatchChatFunction · 0.92
TestArchiveChatFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestUserSecretAuditFunction · 0.74
TestGitSSHKeyFunction · 0.74
TestTokenCRUDFunction · 0.74
TestAPIKey_OKFunction · 0.74
TestExpireAPIKeyFunction · 0.74
TestUserOAuth2GithubFunction · 0.74
TestUserOIDCFunction · 0.74
TestPostChatsFunction · 0.74
TestPatchChatFunction · 0.74
TestArchiveChatFunction · 0.74