From 29e16c1837bb45313742983c60c38e95eca2e9d1 Mon Sep 17 00:00:00 2001 From: Josh Burgess Date: Wed, 25 Oct 2023 13:31:40 -0400 Subject: [PATCH] formats new downloader function test --- internal/download/downloader_test.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/internal/download/downloader_test.go b/internal/download/downloader_test.go index 18819771..346a9a4b 100644 --- a/internal/download/downloader_test.go +++ b/internal/download/downloader_test.go @@ -651,29 +651,29 @@ func zipArchiveReaderForTesting(files map[string]string) (*bytes.Reader, error) func Test_downloadBinary(t *testing.T) { type args struct { targetDir string - read string - size string + read string + size string } tests := []struct { name string args args wantErr bool - } { + }{ { - name: "test fail read of binary", + name: "test fail read of binary", args: args{ targetDir: filepath.Join(testdataPath(), "null-file"), - read: "", - size: "", + read: "", + size: "", }, wantErr: true, }, { - name: "test fail write of binary", + name: "test fail write of binary", args: args{ targetDir: filepath.Join(testdataPath(), "test", "foo"), - read: "", - size: "", + read: "", + size: "", }, wantErr: true, }, @@ -698,4 +698,4 @@ func Test_downloadBinary(t *testing.T) { } }) } -} \ No newline at end of file +}