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

Struct harness

coderd/workspaceconnwatcher/watcher_test.go:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36)
37
38type harness struct {
39 db *dbmock.MockStore
40 watcher *workspaceconnwatcher.Watcher
41 pub pubsub.Publisher
42 logger slog.Logger
43
44 // Initialized, but overridable before Dial()
45 workspace database.Workspace
46 userID, orgID uuid.UUID
47}
48
49func newHarness(ctx context.Context, t *testing.T, logger slog.Logger) *harness {
50 h := &harness{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected