(t *testing.T)
| 248 | } |
| 249 | |
| 250 | func 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 | |
| 265 | func TestPeekRequest(t *testing.T) { |
| 266 | serviceCalled := false |
nothing calls this directly
no test coverage detected
searching dependent graphs…