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

Unified Diff: go/src/infra/gae/libs/gae/dummy/doc.go

Issue 1226063003: Move dummy service implementations into their own package. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@abstract
Patch Set: rebase Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « go/src/infra/gae/libs/gae/dummy.go ('k') | go/src/infra/gae/libs/gae/dummy/dummy.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/gae/libs/gae/dummy/doc.go
diff --git a/go/src/infra/gae/libs/gae/dummy/doc.go b/go/src/infra/gae/libs/gae/dummy/doc.go
new file mode 100644
index 0000000000000000000000000000000000000000..426727e8210fb02ad8b2c92cdc4b5e95c6700c6d
--- /dev/null
+++ b/go/src/infra/gae/libs/gae/dummy/doc.go
@@ -0,0 +1,20 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Package dummy comtains dummy implementations of:
+// * gae.RawDatastore
+// * gae.Memcache
+// * gae.TaskQueue
+// * gae.GlobalInfo
+// * gae.DSQuery
+//
+// These dummy implementations panic with an appropriate error message when
+// any of their methods are called. The message looks something like:
+// dummy: method Interface.Method is not implemented
+//
+// The dummy implementations are useful when implementing the interfaces
+// themselves, or when implementing filters, since it allows your stub
+// implementation to embed the dummy version and then just implement the methods
+// that you care about.
+package dummy
« no previous file with comments | « go/src/infra/gae/libs/gae/dummy.go ('k') | go/src/infra/gae/libs/gae/dummy/dummy.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698