Skip to content

Commit e23704c

Browse files
committed
remove unused
1 parent feebf2b commit e23704c

File tree

2 files changed

+0
-158
lines changed

2 files changed

+0
-158
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
package database
22

33
import (
4-
"fmt"
54
"testing"
65

76
"github.com/stretchr/testify/require"
8-
9-
"github.com/coder/coder/v2/testutil"
107
)
118

129
func TestIsAuthorizedQuery(t *testing.T) {
@@ -16,19 +13,3 @@ func TestIsAuthorizedQuery(t *testing.T) {
1613
_, err := insertAuthorizedFilter(query, "")
1714
require.ErrorContains(t, err, "does not contain authorized replace string", "ensure replace string")
1815
}
19-
20-
// TestWorkspaceTableConvert verifies all workspace fields are converted
21-
// when reducing a `Workspace` to a `WorkspaceTable`.
22-
func TestWorkspaceTableConvert(t *testing.T) {
23-
t.Parallel()
24-
25-
var workspace Workspace
26-
err := testutil.PopulateStruct(&workspace, nil)
27-
require.NoError(t, err)
28-
29-
workspace.WorkspaceTable()
30-
require.JSONEq(t)
31-
32-
fmt.Println(workspace)
33-
34-
}

testutil/reflect.go

-139
This file was deleted.

0 commit comments

Comments
 (0)