Skip to content

Commit

Permalink
Add braces around for loop's body.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Mar 17, 2022
1 parent 6300984 commit 22b30fe
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,9 @@ const char* urls404[] = {

TEST_F(ServerTest, 404)
{
for ( const char* url : urls404 )
for ( const char* url : urls404 ) {
EXPECT_EQ(404, zfs1_->GET(url)->status) << "url: " << url;
}
}

const char* urls400[] = {
Expand All @@ -330,8 +331,9 @@ const char* urls400[] = {

TEST_F(ServerTest, 400)
{
for (const char* url: urls400 )
for (const char* url: urls400 ) {
EXPECT_EQ(400, zfs1_->GET(url)->status) << "url: " << url;
}
}

class TestContentIn404HtmlResponse
Expand Down Expand Up @@ -649,14 +651,16 @@ TEST_F(ServerTest, RawEntry)

TEST_F(ServerTest, HeadMethodIsSupported)
{
for ( const Resource& res : all200Resources() )
for ( const Resource& res : all200Resources() ) {
EXPECT_EQ(200, zfs1_->HEAD(res.url)->status) << res;
}
}

TEST_F(ServerTest, TheResponseToHeadRequestHasNoBody)
{
for ( const Resource& res : all200Resources() )
for ( const Resource& res : all200Resources() ) {
EXPECT_TRUE(zfs1_->HEAD(res.url)->body.empty()) << res;
}
}

TEST_F(ServerTest, HeadersAreTheSameInResponsesToHeadAndGetRequests)
Expand Down

0 comments on commit 22b30fe

Please sign in to comment.