(keyPrefix string)
| 33 | } |
| 34 | |
| 35 | func (mc *MemConfig) ReadAll(keyPrefix string) (map[string]string, error) { |
| 36 | keyPrefix = normalizeKey(keyPrefix) |
| 37 | result := make(map[string]string) |
| 38 | for key, val := range mc.config { |
| 39 | if strings.HasPrefix(key, keyPrefix) { |
| 40 | result[key] = val |
| 41 | } |
| 42 | } |
| 43 | return result, nil |
| 44 | } |
| 45 | |
| 46 | func (mc *MemConfig) ReadString(key string) (string, error) { |
| 47 | // unlike git, the mock can only store one value for the same key |
nothing calls this directly
no test coverage detected