OLD | NEW |
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 } |
OLD | NEW |