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

Function expectDebugLoggingEnabled

coderd/x/chatd/chatdebug/model_internal_test.go:30–39  ·  view source on GitHub ↗
(
	t *testing.T,
	db *dbmock.MockStore,
	ownerID uuid.UUID,
)

Source from the content-addressed store, hash-verified

28func (e *testError) Error() string { return e.message }
29
30func expectDebugLoggingEnabled(
31 t *testing.T,
32 db *dbmock.MockStore,
33 ownerID uuid.UUID,
34) {
35 t.Helper()
36
37 db.EXPECT().GetChatDebugLoggingAllowUsers(gomock.Any()).Return(true, nil)
38 db.EXPECT().GetUserChatDebugLoggingEnabled(gomock.Any(), ownerID).Return(true, nil)
39}
40
41func expectCreateStepNumberWithRequestValidity(
42 t *testing.T,

Calls 4

HelperMethod · 0.65
EXPECTMethod · 0.45

Tested by

no test coverage detected