(key string)
| 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 |
| 48 | key = normalizeKey(key) |
| 49 | val, ok := mc.config[key] |
| 50 | if !ok { |
| 51 | return "", newErrNoConfigEntry(key) |
| 52 | } |
| 53 | |
| 54 | return val, nil |
| 55 | } |
| 56 | |
| 57 | func (mc *MemConfig) ReadBool(key string) (bool, error) { |
| 58 | // unlike git, the mock can only store one value for the same key |
no test coverage detected