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 dummy provides panicking dummy implementations of all service | 5 // Package dummy provides panicking dummy implementations of all service |
6 // Interfaces. | 6 // Interfaces. |
7 // | 7 // |
8 // In particular, this includes: | 8 // In particular, this includes: |
9 // * datastore.Interface | 9 // * datastore.Interface |
10 // * memcache.Interface | 10 // * memcache.Interface |
11 // * taskqueue.Interface | 11 // * taskqueue.Interface |
12 // * info.Interface | 12 // * info.Interface |
13 // * module.Interface | 13 // * module.Interface |
14 // | 14 // |
15 // These dummy implementations panic with an appropriate error message when | 15 // These dummy implementations panic with an appropriate error message when |
16 // any of their methods are called. The message looks something like: | 16 // any of their methods are called. The message looks something like: |
17 // dummy: method Interface.Method is not implemented | 17 // dummy: method Interface.Method is not implemented |
18 // | 18 // |
19 // The dummy implementations are useful when implementing the interfaces | 19 // The dummy implementations are useful when implementing the interfaces |
20 // themselves, or when implementing filters, since it allows your stub | 20 // themselves, or when implementing filters, since it allows your stub |
21 // implementation to embed the dummy version and then just implement the methods | 21 // implementation to embed the dummy version and then just implement the methods |
22 // that you care about. | 22 // that you care about. |
23 package dummy | 23 package dummy |
OLD | NEW |