diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2024-07-01 13:15:00 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2024-07-01 13:17:16 +0200 |
| commit | 3c489c0e29486ce1a5900c4ff87f403ebbbb70fa (patch) | |
| tree | d2db245860b4ae0d5c319aaba4f3aa3cb126808c /tests/account_test.go | |
| parent | 0fe0d65e49adf10a6a92a0412a2ec32e3d036b84 (diff) | |
| download | go-schwift-3c489c0e29486ce1a5900c4ff87f403ebbbb70fa.tar.gz | |
fix autofixable lints
Diffstat (limited to 'tests/account_test.go')
| -rw-r--r-- | tests/account_test.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/account_test.go b/tests/account_test.go index e4572ea..dc108ad 100644 --- a/tests/account_test.go +++ b/tests/account_test.go @@ -30,10 +30,10 @@ func TestAccountBasic(t *testing.T) { if !expectSuccess(t, err) { t.FailNow() } - //There are not a lot of things we can test here (besides testing that - //Headers() does not fail, i.e. everything parses correctly), but - //Content-Type is going to be either application/json or text/plain because - //GET on an account lists the container names as plain text or JSON. + // There are not a lot of things we can test here (besides testing that + // Headers() does not fail, i.e. everything parses correctly), but + // Content-Type is going to be either application/json or text/plain because + // GET on an account lists the container names as plain text or JSON. if hdr.Get("Content-Type") != "application/json; charset=utf-8" { expectString(t, hdr.Get("Content-Type"), "text/plain; charset=utf-8") } @@ -42,7 +42,7 @@ func TestAccountBasic(t *testing.T) { func TestAccountMetadata(t *testing.T) { testWithAccount(t, func(a *schwift.Account) { - //test creating some metadata + // test creating some metadata hdr := schwift.NewAccountHeaders() hdr.Metadata().Set("schwift-test1", "first") hdr.Metadata().Set("schwift-test2", "second") @@ -58,7 +58,7 @@ func TestAccountMetadata(t *testing.T) { expectString(t, hdr.Metadata().Get("schwift-test1"), "first") expectString(t, hdr.Metadata().Get("schwift-test2"), "second") - //test deleting some metadata + // test deleting some metadata hdr = schwift.NewAccountHeaders() hdr.Metadata().Clear("schwift-test1") err = a.Update(hdr, nil) @@ -73,7 +73,7 @@ func TestAccountMetadata(t *testing.T) { expectString(t, hdr.Metadata().Get("schwift-test1"), "") expectString(t, hdr.Metadata().Get("schwift-test2"), "second") - //test updating some metadata + // test updating some metadata hdr = schwift.NewAccountHeaders() hdr.Metadata().Set("schwift-test1", "will not be set") hdr.Metadata().Del("schwift-test1") |
