MCPcopy Create free account
hub / github.com/git-bug/git-bug / ReadBool

Method ReadBool

repository/config_mem.go:57–65  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

55}
56
57func (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
67func (mc *MemConfig) ReadTimestamp(key string) (time.Time, error) {
68 value, err := mc.ReadString(key)

Callers

nothing calls this directly

Calls 1

ReadStringMethod · 0.95

Tested by

no test coverage detected