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

Unified Diff: go/src/infra/monitoring/messages/testresults.go

Issue 1062733009: dispatcher: updates go/infra/monitoring/messages to parse some more json formats (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 5 years, 8 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/monitoring/messages/gatekeeper.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/monitoring/messages/testresults.go
diff --git a/go/src/infra/monitoring/messages/testresults.go b/go/src/infra/monitoring/messages/testresults.go
new file mode 100644
index 0000000000000000000000000000000000000000..5316c0de0d1a828daa4ac45839d9051457940aaa
--- /dev/null
+++ b/go/src/infra/monitoring/messages/testresults.go
@@ -0,0 +1,21 @@
+// 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.
+
+// These structs are for parsing test-results.appspot.com responses.
+
+package messages
+
+// TestResults represents the uploaded results of a set of tests for a build.
+type TestResults struct {
+ BuildNumber string `json:"build_number"`
+ SecondsSinceEpoch int64 `json:"seconds_since_epoch"`
+ Tests map[string]TestResult `json:"tests"`
+}
+
+// TestResult represents the output of an individual test.
+type TestResult struct {
+ Expected string
+ Actual string
+ Time int64
+}
« no previous file with comments | « go/src/infra/monitoring/messages/gatekeeper.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698