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 |
+} |