| OLD | NEW |
| 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 dummy | 5 package dummy |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "fmt" | 8 "fmt" |
| 9 "runtime" | 9 "runtime" |
| 10 "strings" | 10 "strings" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 } | 57 } |
| 58 } | 58 } |
| 59 | 59 |
| 60 return fmt.Errorf(niFmtStr, iface, funcName) | 60 return fmt.Errorf(niFmtStr, iface, funcName) |
| 61 } | 61 } |
| 62 | 62 |
| 63 /////////////////////////////////// ds //////////////////////////////////// | 63 /////////////////////////////////// ds //////////////////////////////////// |
| 64 | 64 |
| 65 type ds struct{} | 65 type ds struct{} |
| 66 | 66 |
| 67 func (ds) AllocateIDs(*datastore.Key, int) (int64, error) { |
| 68 panic(ni()) |
| 69 } |
| 67 func (ds) PutMulti([]*datastore.Key, []datastore.PropertyMap, datastore.PutMulti
CB) error { | 70 func (ds) PutMulti([]*datastore.Key, []datastore.PropertyMap, datastore.PutMulti
CB) error { |
| 68 panic(ni()) | 71 panic(ni()) |
| 69 } | 72 } |
| 70 func (ds) GetMulti([]*datastore.Key, datastore.MultiMetaGetter, datastore.GetMul
tiCB) error { | 73 func (ds) GetMulti([]*datastore.Key, datastore.MultiMetaGetter, datastore.GetMul
tiCB) error { |
| 71 panic(ni()) | 74 panic(ni()) |
| 72 } | 75 } |
| 73 func (ds) DeleteMulti([]*datastore.Key, datastore.DeleteMultiCB) error { panic(n
i()) } | 76 func (ds) DeleteMulti([]*datastore.Key, datastore.DeleteMultiCB) error { panic(n
i()) } |
| 74 func (ds) NewQuery(string) datastore.Query { panic(n
i()) } | 77 func (ds) NewQuery(string) datastore.Query { panic(n
i()) } |
| 75 func (ds) DecodeCursor(string) (datastore.Cursor, error) { panic(n
i()) } | 78 func (ds) DecodeCursor(string) (datastore.Cursor, error) { panic(n
i()) } |
| 76 func (ds) Run(*datastore.FinalizedQuery, datastore.RawRunCB) error { panic(n
i()) } | 79 func (ds) Run(*datastore.FinalizedQuery, datastore.RawRunCB) error { panic(n
i()) } |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 func (i) IsCapabilityDisabled(err error) bool
{ panic(ni()) } | 151 func (i) IsCapabilityDisabled(err error) bool
{ panic(ni()) } |
| 149 func (i) IsOverQuota(err error) bool
{ panic(ni()) } | 152 func (i) IsOverQuota(err error) bool
{ panic(ni()) } |
| 150 func (i) IsTimeoutError(err error) bool
{ panic(ni()) } | 153 func (i) IsTimeoutError(err error) bool
{ panic(ni()) } |
| 151 | 154 |
| 152 var dummyInfoInst = i{} | 155 var dummyInfoInst = i{} |
| 153 | 156 |
| 154 // Info returns a dummy info.Interface implementation suitable for embedding. | 157 // Info returns a dummy info.Interface implementation suitable for embedding. |
| 155 // Every method panics with a message containing the name of the method which | 158 // Every method panics with a message containing the name of the method which |
| 156 // was unimplemented. | 159 // was unimplemented. |
| 157 func Info() info.Interface { return dummyInfoInst } | 160 func Info() info.Interface { return dummyInfoInst } |
| OLD | NEW |