MCPcopy
hub / github.com/usememos/memos / createTestingHostUser

Function createTestingHostUser

store/test/user_test.go:259–261  ·  view source on GitHub ↗
(ctx context.Context, ts *store.Store)

Source from the content-addressed store, hash-verified

257}
258
259func createTestingHostUser(ctx context.Context, ts *store.Store) (*store.User, error) {
260 return createTestingUserWithRole(ctx, ts, "test", store.RoleAdmin)
261}
262
263func createTestingUserWithRole(ctx context.Context, ts *store.Store, username string, role store.Role) (*store.User, error) {
264 userCreate := &store.User{

Calls 1

Tested by

no test coverage detected