MCPcopy Index your code
hub / github.com/semaphoreui/semaphore / createUserOptionsTestUser

Function createUserOptionsTestUser

api/user_options_test.go:30–42  ·  view source on GitHub ↗
(t *testing.T, store db.Store, username string)

Source from the content-addressed store, hash-verified

28}
29
30func createUserOptionsTestUser(t *testing.T, store db.Store, username string) db.User {
31 t.Helper()
32 user, err := store.CreateUser(db.UserWithPwd{
33 Pwd: "verystrongpassword1",
34 User: db.User{
35 Username: username,
36 Name: username,
37 Email: username + "@example.com",
38 },
39 })
40 require.NoError(t, err)
41 return user
42}
43
44func TestSetUserOption_AllowedKey(t *testing.T) {
45 store := bolt.CreateTestStore()

Calls 1

CreateUserMethod · 0.65

Tested by

no test coverage detected