omaha: fix go vet complaints
omaha/protocol_test.go:83: ExampleOmaha_NewResponse refers to unknown identifier: Omaha omaha/protocol_test.go:134: ExampleOmaha_NewRequest refers to unknown identifier: Omaha
This commit is contained in:
parent
8650026537
commit
6ab36bd0dc
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ func TestOmahaRequestUpdateCheck(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func ExampleOmaha_NewResponse() {
|
func ExampleNewResponse() {
|
||||||
response := NewResponse("unit-test")
|
response := NewResponse("unit-test")
|
||||||
app := response.AddApp("{52F1B9BC-D31A-4D86-9276-CBC256AADF9A}")
|
app := response.AddApp("{52F1B9BC-D31A-4D86-9276-CBC256AADF9A}")
|
||||||
app.Status = "ok"
|
app.Status = "ok"
|
||||||
|
@ -124,7 +124,7 @@ func ExampleOmaha_NewResponse() {
|
||||||
// </response>
|
// </response>
|
||||||
}
|
}
|
||||||
|
|
||||||
func ExampleOmaha_NewRequest() {
|
func ExampleNewRequest() {
|
||||||
request := NewRequest("Indy", "Chrome OS", "ForcedUpdate_x86_64", "")
|
request := NewRequest("Indy", "Chrome OS", "ForcedUpdate_x86_64", "")
|
||||||
app := request.AddApp("{27BD862E-8AE8-4886-A055-F7F1A6460627}", "1.0.0.0")
|
app := request.AddApp("{27BD862E-8AE8-4886-A055-F7F1A6460627}", "1.0.0.0")
|
||||||
app.AddUpdateCheck()
|
app.AddUpdateCheck()
|
||||||
|
|
Loading…
Reference in a new issue