MCPcopy
hub / github.com/kubernetes/client-go / testStoreKeyFunc

Function testStoreKeyFunc

tools/cache/store_test.go:122–124  ·  view source on GitHub ↗
(obj interface{})

Source from the content-addressed store, hash-verified

120}
121
122func testStoreKeyFunc(obj interface{}) (string, error) {
123 return obj.(testStoreObject).id, nil
124}
125
126func testStoreIndexFunc(obj interface{}) ([]string, error) {
127 return []string{obj.(testStoreObject).val}, nil

Callers 2

TestTTLExpirationBasicFunction · 0.85
TestReAddExpiredItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected