newMockTenantLimits creates a new mockTenantLimits that returns per-tenant limits based on the given map
(limits map[string]*Limits)
| 28 | // newMockTenantLimits creates a new mockTenantLimits that returns per-tenant limits based on |
| 29 | // the given map |
| 30 | func newMockTenantLimits(limits map[string]*Limits) *mockTenantLimits { |
| 31 | return &mockTenantLimits{ |
| 32 | limits: limits, |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | func (l *mockTenantLimits) ByUserID(userID string) *Limits { |
| 37 | return l.limits[userID] |
no outgoing calls
no test coverage detected