8000 test: Increase test coverage on auditable resources by Emyrk · Pull Request #7038 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

test: Increase test coverage on auditable resources #7038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Formatting
  • Loading branch information
Emyrk committed Apr 6, 2023
commit ad15b3cff90c1934f6592c8f9673d8d1152383e8
6 changes: 3 additions & 3 deletions enterprise/audit/table_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,21 @@ func TestAuditableResources(t *testing.T) {
// nolint:paralleltest
t.Run("ResourceID", func(t *testing.T) {
// The function being tested, provided here to make it easier to find
var _ = audit.ResourceID[database.APIKey]
_ = audit.ResourceID[database.APIKey]
testAuditFunctionWithSwitch(t, auditPkg, "ResourceID", expectedList)
})

// nolint:paralleltest
t.Run("ResourceType", func(t *testing.T) {
// The function being tested, provided here to make it easier to find
var _ = audit.ResourceType[database.APIKey]
_ = audit.ResourceType[database.APIKey]
testAuditFunctionWithSwitch(t, auditPkg, "ResourceType", expectedList)
})

// nolint:paralleltest
t.Run("ResourceTarget", func(t *testing.T) {
// The function being tested, provided here to make it easier to find
var _ = audit.ResourceTarget[database.APIKey]
_ = audit.ResourceTarget[database.APIKey]
testAuditFunctionWithSwitch(t, auditPkg, "ResourceTarget", expectedList)
})
}
Expand Down
0