10000 add comments · coder/coder@345d116 · GitHub
[go: up one dir, main page]

Skip to content

Commit 345d116

Browse files
committed
add comments
1 parent f79a138 commit 345d116

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

coderd/coderdtest/coderdtest.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ func New(t *testing.T, options *Options) *codersdk.Client {
7979
return client
8080
}
8181

82+
// UseSQL returns true if a Postgres server is running and can be used for tests.
8283
func UseSQL() bool {
8384
return os.Getenv("DB") != ""
8485
}

coderd/database/querier.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries.sql.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/users.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ LIMIT
2323
1;
2424

2525
-- name: GetActualUserCount :one
26+
-- Actual user count refers to the count of all users except the system user
2627
SELECT
2728
COUNT(*)
2829
FROM

coderd/users_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
func TestSystemUser(t *testing.T) {
2525
if !coderdtest.UseSQL() {
26-
t.Skip("There is no point in running this test.")
26+
t.Skip("This test asserts that the system user is equivalent in SQL and the fake database.")
2727
}
2828

2929
t.Parallel()

0 commit comments

Comments
 (0)
0