|
|
Milo: Increase test coverage for appengine/buildbot
Adds new tests and slight refactoring including:
* Move most of the html test data out of the buildbot module into the frontend module. Because that code is only executed by the frontend test code, it makes more sense to put it there. The intention is to do the same with the other modules.
* Because of the above, make the build implementation public.
* Add new test cases and test files.
This yields 81.1% test coverage for the buildbot module.
BUG= 712431
Review-Url: https://codereview.chromium.org/2856273004
Committed: https://github.com/luci/luci-go/commit/23968256fadb58591bf2e8d1fce49eab04b721bb
Total comments: 26
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1815 lines, -146 lines) |
Patch |
 |
M |
milo/appengine/buildbot/build.go
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
milo/appengine/buildbot/build_test.go
|
View
|
1
2
|
2 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
milo/appengine/buildbot/builder.go
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+13 lines, -4 lines |
0 comments
|
Download
|
 |
A |
milo/appengine/buildbot/builder_test.go
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+93 lines, -0 lines |
0 comments
|
Download
|
 |
M |
milo/appengine/buildbot/buildinfo.go
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+9 lines, -6 lines |
0 comments
|
Download
|
 |
M |
milo/appengine/buildbot/buildinfo_test.go
|
View
|
1
2
3
4
5
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
A |
milo/appengine/buildbot/console_test.go
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+70 lines, -0 lines |
0 comments
|
Download
|
 |
A |
milo/appengine/buildbot/expectations/chromium_presubmit.426944.build.json
|
View
|
|
1 chunk |
+550 lines, -0 lines |
0 comments
|
Download
|
 |
M |
milo/appengine/buildbot/grpc_test.go
|
View
|
1
2
3
|
4 chunks |
+77 lines, -4 lines |
0 comments
|
Download
|
 |
M |
milo/appengine/buildbot/html.go
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+13 lines, -8 lines |
0 comments
|
Download
|
 |
M |
milo/appengine/buildbot/html_data.go
|
View
|
1
2
|
1 chunk |
+5 lines, -90 lines |
0 comments
|
Download
|
 |
A |
milo/appengine/buildbot/html_test.go
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+109 lines, -0 lines |
0 comments
|
Download
|
 |
A |
milo/appengine/buildbot/master_test.go
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
 |
M |
milo/appengine/buildbot/pubsub_test.go
|
View
|
1
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
A |
milo/appengine/buildbot/testdata/chromium_presubmit.426944.json
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
milo/appengine/common/middleware.go
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
milo/appengine/frontend/buildbot_data.go
|
View
|
1
2
|
3 chunks |
+10 lines, -19 lines |
0 comments
|
Download
|
 |
A |
milo/appengine/frontend/expectations/buildbot.build-Debug_page-_chromium_presubmit_426944.html
|
View
|
1
2
3
4
5
6
|
1 chunk |
+779 lines, -0 lines |
0 comments
|
Download
|
 |
M |
milo/appengine/frontend/main_test.go
|
View
|
1
2
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 55 (44 generated)
|