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

Side by Side Diff: impl/dummy/dummy.go

Issue 2007123002: datastore: Update AllocateIDs to take keys. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Rebase, comments. Created 4 years, 6 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
« no previous file with comments | « filter/txnBuf/txnbuf_test.go ('k') | impl/memory/datastore.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The LUCI Authors. All rights reserved. 1 // Copyright 2015 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package dummy 5 package dummy
6 6
7 import ( 7 import (
8 "fmt" 8 "fmt"
9 "runtime" 9 "runtime"
10 "strings" 10 "strings"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 } 66 }
67 } 67 }
68 68
69 return fmt.Errorf(niFmtStr, iface, funcName) 69 return fmt.Errorf(niFmtStr, iface, funcName)
70 } 70 }
71 71
72 /////////////////////////////////// ds //////////////////////////////////// 72 /////////////////////////////////// ds ////////////////////////////////////
73 73
74 type ds struct{} 74 type ds struct{}
75 75
76 func (ds) AllocateIDs(*datastore.Key, int) (int64, error) { 76 func (ds) AllocateIDs([]*datastore.Key, datastore.NewKeyCB) error { panic(ni()) }
77 » panic(ni()) 77 func (ds) PutMulti([]*datastore.Key, []datastore.PropertyMap, datastore.NewKeyCB ) error { panic(ni()) }
78 }
79 func (ds) PutMulti([]*datastore.Key, []datastore.PropertyMap, datastore.PutMulti CB) error {
80 » panic(ni())
81 }
82 func (ds) GetMulti([]*datastore.Key, datastore.MultiMetaGetter, datastore.GetMul tiCB) error { 78 func (ds) GetMulti([]*datastore.Key, datastore.MultiMetaGetter, datastore.GetMul tiCB) error {
83 panic(ni()) 79 panic(ni())
84 } 80 }
85 func (ds) DeleteMulti([]*datastore.Key, datastore.DeleteMultiCB) error { panic(n i()) } 81 func (ds) DeleteMulti([]*datastore.Key, datastore.DeleteMultiCB) error { panic(n i()) }
86 func (ds) DecodeCursor(string) (datastore.Cursor, error) { panic(n i()) } 82 func (ds) DecodeCursor(string) (datastore.Cursor, error) { panic(n i()) }
87 func (ds) Count(*datastore.FinalizedQuery) (int64, error) { panic(n i()) } 83 func (ds) Count(*datastore.FinalizedQuery) (int64, error) { panic(n i()) }
88 func (ds) Run(*datastore.FinalizedQuery, datastore.RawRunCB) error { panic(n i()) } 84 func (ds) Run(*datastore.FinalizedQuery, datastore.RawRunCB) error { panic(n i()) }
89 func (ds) RunInTransaction(func(context.Context) error, *datastore.TransactionOp tions) error { 85 func (ds) RunInTransaction(func(context.Context) error, *datastore.TransactionOp tions) error {
90 panic(ni()) 86 panic(ni())
91 } 87 }
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 func (mod) DefaultVersion(module string) (string, error) { panic( ni()) } 211 func (mod) DefaultVersion(module string) (string, error) { panic( ni()) }
216 func (mod) Start(module, version string) error { panic( ni()) } 212 func (mod) Start(module, version string) error { panic( ni()) }
217 func (mod) Stop(module, version string) error { panic( ni()) } 213 func (mod) Stop(module, version string) error { panic( ni()) }
218 214
219 var dummyModuleInst = mod{} 215 var dummyModuleInst = mod{}
220 216
221 // Module returns a dummy module.Interface implementation suitable for 217 // Module returns a dummy module.Interface implementation suitable for
222 // embedding. Every method panics with a message containing the name of the 218 // embedding. Every method panics with a message containing the name of the
223 // method which was unimplemented. 219 // method which was unimplemented.
224 func Module() module.Interface { return dummyModuleInst } 220 func Module() module.Interface { return dummyModuleInst }
OLDNEW
« no previous file with comments | « filter/txnBuf/txnbuf_test.go ('k') | impl/memory/datastore.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698