MCPcopy Create free account
hub / github.com/dnote/dnote / setupUser

Function setupUser

pkg/e2e/sync/testutils.go:148–152  ·  view source on GitHub ↗

setupUser creates a test user in the server database

(t *testing.T, env testEnv)

Source from the content-addressed store, hash-verified

146
147// setupUser creates a test user in the server database
148func setupUser(t *testing.T, env testEnv) database.User {
149 user := apitest.SetupUserData(env.ServerDB, "alice@example.com", "pass1234")
150
151 return user
152}
153
154// setupUserAndLogin creates a test user and logs them in on the CLI
155func setupUserAndLogin(t *testing.T, env testEnv) database.User {

Callers 2

setupUserAndLoginFunction · 0.85

Calls

no outgoing calls

Tested by 1