MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / get

Method get

proxy_test.go:1235–1243  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

1233}
1234
1235func (r *requestRegistry) get(key string) (bool, error) {
1236 r.Lock()
1237 defer r.Unlock()
1238 v, ok := r.r[key]
1239 if !ok {
1240 return false, fmt.Errorf("no such key")
1241 }
1242 return v, nil
1243}
1244
1245func TestCalcQueryParamsHash(t *testing.T) {
1246 testCases := []struct {

Callers 1

TestKillQueryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected