(username string)
| 526 | } |
| 527 | |
| 528 | func (a *authUserStorage) GetUser(username string) (AuthUser, error) { |
| 529 | a.lock.Lock() |
| 530 | defer a.lock.Unlock() |
| 531 | if user, ok := a.users[username]; ok { |
| 532 | return user, nil |
| 533 | } |
| 534 | return nil, message.NewMessage(message.MTest, "User %s not found in test database.", username) |
| 535 | } |
| 536 | |
| 537 | func (a *authUserStorage) RemoveUser(username string) { |
| 538 | a.lock.Lock() |
nothing calls this directly
no test coverage detected