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

Function createSampleUser

coderd/notifications/utils_test.go:63–68  ·  view source on GitHub ↗
(t *testing.T, db database.Store)

Source from the content-addressed store, hash-verified

61}
62
63func createSampleUser(t *testing.T, db database.Store) database.User {
64 return dbgen.User(t, db, database.User{
65 Email: "bob@coder.com",
66 Username: "bob",
67 })
68}
69
70func createMetrics() *notifications.Metrics {
71 return notifications.NewMetrics(prometheus.NewRegistry())

Callers 15

TestMetricsFunction · 0.85
TestPendingUpdatesMetricFunction · 0.85
TestSMTPDispatchFunction · 0.85
TestBackpressureFunction · 0.85
TestRetriesFunction · 0.85
TestNotifierPausedFunction · 0.85

Calls 1

UserFunction · 0.92

Tested by

no test coverage detected