(key string)
| 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 |
| 59 | val, err := mc.ReadString(key) |
| 60 | if err != nil { |
| 61 | return false, err |
| 62 | } |
| 63 | |
| 64 | return strconv.ParseBool(val) |
| 65 | } |
| 66 | |
| 67 | func (mc *MemConfig) ReadTimestamp(key string) (time.Time, error) { |
| 68 | value, err := mc.ReadString(key) |
nothing calls this directly
no test coverage detected