Skip to content

chore: unit test to enforce authorized queries match args #11211

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 7 commits into from
Dec 15, 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
lint
  • Loading branch information
Emyrk committed Dec 15, 2023
commit 9f2eafc9565d724b3bd928f8bdc98c3c5f610cec
1 change: 1 addition & 0 deletions coderd/database/gentest/modelqueries_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func TestCustomQueriesSyncedRowScan(t *testing.T) {
for a, b := range funcsToTrack {
a, b := a, b
if !compareFns(t, a, b, merged[a], merged[b]) {
//nolint:revive
defer func() {
// Run this at the end so the suggested fix is the last thing printed.
t.Errorf("The functions %q and %q need to have identical 'rows.Scan()' "+
Expand Down