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

Unified Diff: filter/count/count.go

Issue 1355783002: Refactor keys and queries in datastore service and implementation. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: appease errcheck Created 5 years, 3 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 | « no previous file | filter/count/count_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filter/count/count.go
diff --git a/filter/count/count.go b/filter/count/count.go
index 2a7b2dd0da85d9eacaaa50d2238c5d2fbf629f36..d3ff220497037071f56fb9a17492b29266e0f48a 100644
--- a/filter/count/count.go
+++ b/filter/count/count.go
@@ -40,10 +40,12 @@ func (e *Entry) String() string {
// this API. It's Successes+Errors.
func (e *Entry) Total() int64 { return int64(e.Successes()) + int64(e.Errors()) }
+// Successes returns the number of successful invocations for this Entry.
func (e *Entry) Successes() int {
return e.successes.get()
}
+// Errors returns the number of unsuccessful invocations for this Entry.
func (e *Entry) Errors() int {
return e.errors.get()
}
« no previous file with comments | « no previous file | filter/count/count_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698