From 6ab36bd0dc026c051fcd26f75bf7dbbddb39cda2 Mon Sep 17 00:00:00 2001 From: Nick Owens Date: Mon, 16 Nov 2015 12:53:45 -0800 Subject: [PATCH] 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 --- omaha/protocol_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/omaha/protocol_test.go b/omaha/protocol_test.go index eb6c54c..cc0ff25 100644 --- a/omaha/protocol_test.go +++ b/omaha/protocol_test.go @@ -76,7 +76,7 @@ func TestOmahaRequestUpdateCheck(t *testing.T) { } } -func ExampleOmaha_NewResponse() { +func ExampleNewResponse() { response := NewResponse("unit-test") app := response.AddApp("{52F1B9BC-D31A-4D86-9276-CBC256AADF9A}") app.Status = "ok" @@ -124,7 +124,7 @@ func ExampleOmaha_NewResponse() { // } -func ExampleOmaha_NewRequest() { +func ExampleNewRequest() { request := NewRequest("Indy", "Chrome OS", "ForcedUpdate_x86_64", "") app := request.AddApp("{27BD862E-8AE8-4886-A055-F7F1A6460627}", "1.0.0.0") app.AddUpdateCheck()