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

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

Issue 2021753002: Change gae to apache 2 license. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The LUCI 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 under the Apache License, Version 2.0
3 // found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package datastore 5 package datastore
6 6
7 // TestingSnapshot is an opaque implementation-defined snapshot type. 7 // TestingSnapshot is an opaque implementation-defined snapshot type.
8 type TestingSnapshot interface { 8 type TestingSnapshot interface {
9 ImATestingSnapshot() 9 ImATestingSnapshot()
10 } 10 }
11 11
12 // Testable is the testable interface for fake datastore implementations. 12 // Testable is the testable interface for fake datastore implementations.
13 type Testable interface { 13 type Testable interface {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // - Put'ing incomplete Keys returns an error. 67 // - Put'ing incomplete Keys returns an error.
68 // - Transactions are disabled and will return an error. 68 // - Transactions are disabled and will return an error.
69 // 69 //
70 // This is mainly only useful when using an embedded in-memory datastore as 70 // This is mainly only useful when using an embedded in-memory datastore as
71 // a fully-consistent 'datastore-lite'. In particular, this is useful fo r the 71 // a fully-consistent 'datastore-lite'. In particular, this is useful fo r the
72 // txnBuf filter which uses it to fulfil queries in a buffered transacti on, 72 // txnBuf filter which uses it to fulfil queries in a buffered transacti on,
73 // but never wants the in-memory versions of these entities to bleed thr ough 73 // but never wants the in-memory versions of these entities to bleed thr ough
74 // to the user code. 74 // to the user code.
75 DisableSpecialEntities(bool) 75 DisableSpecialEntities(bool)
76 } 76 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698