OLD | NEW |
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 gae provides a fakable wrapped interface for the appengine SDK's | 5 // Package gae provides a fakable wrapped interface for the appengine SDK's |
6 // APIs. This means that it's possible to mock all of the supported appengine | 6 // APIs. This means that it's possible to mock all of the supported appengine |
7 // APIs for testing (or potentially implement a different backend for them). | 7 // APIs for testing (or potentially implement a different backend for them). |
8 // | 8 // |
9 // Features | 9 // Features |
10 // | 10 // |
11 // gae currently provides interfaces for: | 11 // gae currently provides interfaces for: |
12 // - Datastore | 12 // - Datastore |
13 // - Memcache | 13 // - Memcache |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 // and the state can be observed to see how many times each API was invoked. | 217 // and the state can be observed to see how many times each API was invoked. |
218 // Since filters stack, we can compare counts from rawCount versus userCount to | 218 // Since filters stack, we can compare counts from rawCount versus userCount to |
219 // see how many calls to the actual real datastore went through, vs. how many | 219 // see how many calls to the actual real datastore went through, vs. how many |
220 // went to memcache, for example. | 220 // went to memcache, for example. |
221 // | 221 // |
222 // Note that Filters apply only to the service.RawInterface. All implementations | 222 // Note that Filters apply only to the service.RawInterface. All implementations |
223 // of service.Interface boil down to calls to service.RawInterface methods, but | 223 // of service.Interface boil down to calls to service.RawInterface methods, but |
224 // it's possible that bad calls to the service.Interface methods could return | 224 // it's possible that bad calls to the service.Interface methods could return |
225 // an error before ever reaching the filters or service implementation. | 225 // an error before ever reaching the filters or service implementation. |
226 package gae | 226 package gae |
OLD | NEW |