MCPcopy
hub / github.com/gotify/server / NewUser

Method NewUser

test/testdb/database.go:54–56  ·  view source on GitHub ↗

NewUser creates a user and returns the user.

(id uint)

Source from the content-addressed store, hash-verified

52
53// NewUser creates a user and returns the user.
54func (d *Database) NewUser(id uint) *model.User {
55 return d.NewUserWithName(id, "user"+fmt.Sprint(id))
56}
57
58// NewUserWithName creates a user with a name and returns the user.
59func (d *Database) NewUserWithName(id uint, name string) *model.User {

Callers 5

UserMethod · 0.95
Test_UsersMethod · 0.80
Test_GetUsersMethod · 0.80
Test_GetCurrentUserMethod · 0.80
Test_GetUserByIDMethod · 0.80

Implementers 1

GormDatabasedatabase/database.go

Calls 1

NewUserWithNameMethod · 0.95

Tested by 4

Test_UsersMethod · 0.64
Test_GetUsersMethod · 0.64
Test_GetCurrentUserMethod · 0.64
Test_GetUserByIDMethod · 0.64