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

Function TestIsAuthorizedQuery

coderd/database/modelqueries_internal_test.go:17–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

15)
16
17func TestIsAuthorizedQuery(t *testing.T) {
18 t.Parallel()
19
20 query := `SELECT true;`
21 _, err := insertAuthorizedFilter(query, "")
22 require.ErrorContains(t, err, "does not contain authorized replace string", "ensure replace string")
23}
24
25// TestWorkspaceTableConvert verifies all workspace fields are converted
26// when reducing a `Workspace` to a `WorkspaceTable`.

Callers

nothing calls this directly

Calls 1

insertAuthorizedFilterFunction · 0.85

Tested by

no test coverage detected