MCPcopy Create free account
hub / github.com/golang/appengine / TestGetMultiEmpty

Function TestGetMultiEmpty

v2/memcache/memcache_test.go:250–263  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

248}
249
250func TestGetMultiEmpty(t *testing.T) {
251 serviceCalled := false
252 c := aetesting.FakeSingleContext(t, "memcache", "Get", func(req *pb.MemcacheGetRequest, _ *pb.MemcacheGetResponse) error {
253 serviceCalled = true
254 return nil
255 })
256
257 // Test that the Memcache service is not called when
258 // GetMulti is passed an empty slice of keys.
259 GetMulti(c, []string{})
260 if serviceCalled {
261 t.Error("Service was called but should not have been")
262 }
263}
264
265func TestPeekRequest(t *testing.T) {
266 serviceCalled := false

Callers

nothing calls this directly

Calls 3

FakeSingleContextFunction · 0.92
GetMultiFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…