Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: service/datastore/raw_interface.go

Issue 1285703002: Add testable interface for datastore. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package datastore 5 package datastore
6 6
7 import ( 7 import (
8 "fmt" 8 "fmt"
9 9
10 "golang.org/x/net/context" 10 "golang.org/x/net/context"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // 185 //
186 // Callback execues once per key, in the order of keys. Callback may not 186 // Callback execues once per key, in the order of keys. Callback may not
187 // execute at all if there's a server error. 187 // execute at all if there's a server error.
188 // 188 //
189 // NOTE: Implementations and filters are guaranteed that 189 // NOTE: Implementations and filters are guaranteed that
190 // - len(keys) > 0 190 // - len(keys) > 0
191 // - all keys are Valid, !Incomplete, and in the current namespace 191 // - all keys are Valid, !Incomplete, and in the current namespace
192 // - none keys of the keys are 'special' (use a kind prefixed with '__ ') 192 // - none keys of the keys are 'special' (use a kind prefixed with '__ ')
193 // - cb is not nil 193 // - cb is not nil
194 DeleteMulti(keys []Key, cb DeleteMultiCB) error 194 DeleteMulti(keys []Key, cb DeleteMultiCB) error
195
196 // Testable returns the Testable interface for the implementation, or ni l if
197 // there is none.
198 Testable() Testable
195 } 199 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698