From 3c489c0e29486ce1a5900c4ff87f403ebbbb70fa Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Mon, 1 Jul 2024 13:15:00 +0200 Subject: fix autofixable lints --- tests/account_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/account_test.go') 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") -- cgit v1.2.3