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

Side by Side Diff: go/src/infra/appengine/test-results/model/full_result_test.go

Issue 2231393002: test-results: Add merge and trim methods (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: tests: remove unecessary Trim calls Created 4 years, 4 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
OLDNEW
1 package model 1 package model
2 2
3 import ( 3 import (
4 "encoding/json" 4 "encoding/json"
5 "testing" 5 "testing"
6 6
7 . "github.com/smartystreets/goconvey/convey" 7 . "github.com/smartystreets/goconvey/convey"
8 ) 8 )
9 9
10 func TestFullResult(t *testing.T) { 10 func TestFullResult(t *testing.T) {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 "baz": AggregateTest{ 112 "baz": AggregateTest{
113 "qux": Aggregate Test{ 113 "qux": Aggregate Test{
114 "baaz": &AggregateTestLeaf{ 114 "baaz": &AggregateTestLeaf{
115 Results: []ResultSummary{{1, "C"}}, 115 Results: []ResultSummary{{1, "C"}},
116 Runtimes: []RuntimeSummary{{1, 0}}, 116 Runtimes: []RuntimeSummary{{1, 0}},
117 Expected: []string{"CRASH", "AUDIO"}, 117 Expected: []string{"CRASH", "AUDIO"},
118 }, 118 },
119 }, 119 },
120 "baax": &Aggrega teTestLeaf{ 120 "baax": &Aggrega teTestLeaf{
121 Results: []ResultSummary{{1, "PAC"}}, 121 Results: []ResultSummary{{1, "PAC"}},
122 » » » » » » » » » Runtimes : []RuntimeSummary{{1, 20.9}}, 122 » » » » » » » » » Runtimes : []RuntimeSummary{{1, 21}},
123 Expected : []string{"PASS", "CRASH"}, 123 Expected : []string{"PASS", "CRASH"},
124 Bugs: []string{"crbug.com/700", "crbug.com/900"}, 124 Bugs: []string{"crbug.com/700", "crbug.com/900"},
125 }, 125 },
126 }, 126 },
127 }, 127 },
128 FailuresByType: map[string][]int { 128 FailuresByType: map[string][]int {
129 "A": {5}, 129 "A": {5},
130 "Q": {11}, 130 "Q": {11},
131 }, 131 },
132 ChromeRevs: []string{"45000"}, 132 ChromeRevs: []string{"45000"},
133 }, 133 },
134 }) 134 })
135 }) 135 })
136 }) 136 })
137 }) 137 })
138 } 138 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698