| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 } | 70 } |
| 71 func (ds) DecodeKey(string) (datastore.Key, error) { panic(ni()) } | 71 func (ds) DecodeKey(string) (datastore.Key, error) { panic(ni()) } |
| 72 func (ds) PutMulti([]datastore.Key, []datastore.PropertyMap, datastore.PutMultiC
B) error { | 72 func (ds) PutMulti([]datastore.Key, []datastore.PropertyMap, datastore.PutMultiC
B) error { |
| 73 panic(ni()) | 73 panic(ni()) |
| 74 } | 74 } |
| 75 func (ds) GetMulti([]datastore.Key, datastore.MultiMetaGetter, datastore.GetMult
iCB) error { | 75 func (ds) GetMulti([]datastore.Key, datastore.MultiMetaGetter, datastore.GetMult
iCB) error { |
| 76 panic(ni()) | 76 panic(ni()) |
| 77 } | 77 } |
| 78 func (ds) DeleteMulti([]datastore.Key, datastore.DeleteMultiCB) error { panic(ni
()) } | 78 func (ds) DeleteMulti([]datastore.Key, datastore.DeleteMultiCB) error { panic(ni
()) } |
| 79 func (ds) NewQuery(string) datastore.Query { panic(ni
()) } | 79 func (ds) NewQuery(string) datastore.Query { panic(ni
()) } |
| 80 func (ds) DecodeCursor(string) (datastore.Cursor, error) { panic(ni
()) } |
| 80 func (ds) Run(datastore.Query, datastore.RawRunCB) error { panic(ni
()) } | 81 func (ds) Run(datastore.Query, datastore.RawRunCB) error { panic(ni
()) } |
| 81 func (ds) RunInTransaction(func(context.Context) error, *datastore.TransactionOp
tions) error { | 82 func (ds) RunInTransaction(func(context.Context) error, *datastore.TransactionOp
tions) error { |
| 82 panic(ni()) | 83 panic(ni()) |
| 83 } | 84 } |
| 84 func (ds) Testable() datastore.Testable { return nil } | 85 func (ds) Testable() datastore.Testable { return nil } |
| 85 | 86 |
| 86 var dummyDSInst = ds{} | 87 var dummyDSInst = ds{} |
| 87 | 88 |
| 88 // Datastore returns a dummy datastore.RawInterface implementation suitable | 89 // Datastore returns a dummy datastore.RawInterface implementation suitable |
| 89 // for embedding. Every method panics with a message containing the name of the | 90 // for embedding. Every method panics with a message containing the name of the |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 func (i) IsCapabilityDisabled(err error) bool
{ panic(ni()) } | 153 func (i) IsCapabilityDisabled(err error) bool
{ panic(ni()) } |
| 153 func (i) IsOverQuota(err error) bool
{ panic(ni()) } | 154 func (i) IsOverQuota(err error) bool
{ panic(ni()) } |
| 154 func (i) IsTimeoutError(err error) bool
{ panic(ni()) } | 155 func (i) IsTimeoutError(err error) bool
{ panic(ni()) } |
| 155 | 156 |
| 156 var dummyInfoInst = i{} | 157 var dummyInfoInst = i{} |
| 157 | 158 |
| 158 // Info returns a dummy info.Interface implementation suitable for embedding. | 159 // Info returns a dummy info.Interface implementation suitable for embedding. |
| 159 // Every method panics with a message containing the name of the method which | 160 // Every method panics with a message containing the name of the method which |
| 160 // was unimplemented. | 161 // was unimplemented. |
| 161 func Info() info.Interface { return dummyInfoInst } | 162 func Info() info.Interface { return dummyInfoInst } |
| OLD | NEW |