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

Side by Side Diff: go/src/infra/monitoring/messages/testresults.go

Issue 1125263004: dispatcher: fix test result parsing, build ranges for failure alerts, other fixes (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: fixed typo in comments Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « go/src/infra/monitoring/messages/gatekeeper.go ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium 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 by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // These structs are for parsing test-results.appspot.com responses. 5 // These structs are for parsing test-results.appspot.com responses.
6 6
7 package messages 7 package messages
8 8
9 // TestResults represents the uploaded results of a set of tests for a build. 9 // TestResults represents the uploaded results of a set of tests for a build.
10 type TestResults struct { 10 type TestResults struct {
11 » BuildNumber string `json:"build_number"` 11 » BuildNumber string `json:"build_number"`
12 » SecondsSinceEpoch int64 `json:"seconds_since_epoch"` 12 » SecondsSinceEpoch int64 `json:"seconds_since_epoch"`
13 » Tests map[string]TestResult `json:"tests"` 13 » // Tests is an arbitrarily nested tree of test names
14 » Tests map[string]interface{} `json:"tests"`
14 } 15 }
15 16
16 // TestResult represents the output of an individual test. 17 // TestResult represents the output of an individual test.
17 type TestResult struct { 18 type TestResult struct {
18 Expected string 19 Expected string
19 Actual string 20 Actual string
20 Time int64 21 Time int64
21 } 22 }
OLDNEW
« 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