MCPcopy
hub / github.com/SpecterOps/BloodHound / Error

Method Error

packages/go/cache/cache.go:33–43  ·  view source on GitHub ↗

Error returns an error depending on the type contained in InvalidValueError

()

Source from the content-addressed store, hash-verified

31
32// Error returns an error depending on the type contained in InvalidValueError
33func (s *InvalidValueError) Error() string {
34 if s.Type == nil {
35 return "cache: invalid value passed: nil"
36 }
37
38 if s.Type.Kind() != reflect.Pointer {
39 return "cache: invalid value passed: non-pointer"
40 }
41
42 return fmt.Sprintf("cache: invalid value passed: nil %s", s.Type.String())
43}
44
45// Config contains configuration for our cache. This config should contain any
46// cache configuration options we actually use.

Callers 6

setupLRUCacheFunction · 0.45
TestCache_SetFunction · 0.45
TestCache_GuardedSetFunction · 0.45
TestCache_GetFunction · 0.45
TestInvalidValueErrorFunction · 0.45
mainFunction · 0.45

Calls 2

StringMethod · 0.65
KindMethod · 0.45

Tested by 5

setupLRUCacheFunction · 0.36
TestCache_SetFunction · 0.36
TestCache_GuardedSetFunction · 0.36
TestCache_GetFunction · 0.36
TestInvalidValueErrorFunction · 0.36