Skip to content

Commit

Permalink
Drop main() functions from all gtest files (#245)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll authored Apr 4, 2022
1 parent ff89488 commit bd50422
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 105 deletions.
7 changes: 0 additions & 7 deletions src/ClientConfig_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,3 @@ TEST(ServerConfig, Url)
EXPECT_FALSE(srv.Url().Authority());
}
}

//////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/CollectionIdentifier_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,3 @@ TEST(CollectionIdentifier, AsPrettyString)
EXPECT_NE(str.find("raspberry"), std::string::npos);
}
}

//////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/FuelClient_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1457,10 +1457,3 @@ TEST_F(FuelClientTest, PatchModelFail)
result = client.PatchModel(modelId, headers);
EXPECT_EQ(ResultType::PATCH_ERROR, result.Type());
}

//////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/Helpers_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,3 @@ TEST(HelpersTEST, UriToPathHasAuthority)
"path")), uriToPath(uri));
}
}

//////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/JSONParser_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,3 @@ TEST(JSONParser, ParseLicenses)
}
}
}

//////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/LocalCache_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -470,10 +470,3 @@ TEST_F(LocalCacheTest, MatchingWorld)
bogus3.SetName("tm3");
EXPECT_FALSE(cache.MatchingWorld(bogus3));
}

//////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/ModelIdentifier_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,3 @@ TEST(ModelIdentifier, AsPrettyString)
EXPECT_NE(str.find("2048"), std::string::npos);
}
}

//////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/ModelIter_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,3 @@ TEST(ModelIterTestFixture, MoveThroughModels)
++iter;
EXPECT_FALSE(iter);
}

//////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/Model_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,3 @@ TEST(Model, ConstructorDoesNotCrash)
std::string path = model.PathToModel();
EXPECT_TRUE(path.empty());
}

//////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/RestClient_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,3 @@ TEST(RestClient, UserAgent)
rest.SetUserAgent("my_user_agent");
EXPECT_EQ("my_user_agent", rest.UserAgent());
}

//////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/Result_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,3 @@ TEST(Result, TrueOnSuccess)
EXPECT_FALSE(Result(ResultType::UPLOAD_ALREADY_EXISTS));
EXPECT_FALSE(Result(ResultType::UPLOAD_ERROR));
}

//////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/WorldIdentifier_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,3 @@ TEST(WorldIdentifier, AsPrettyString)
EXPECT_NE(str.find("55"), std::string::npos);
}
}

//////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/WorldIter_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,3 @@ TEST(WorldIterTestFixture, MoveThroughIds)
++iter;
EXPECT_FALSE(iter);
}

//////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/Zip_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,3 @@ TEST_F(ZipTest, CompressAndExtract)
// Clean.
ignition::common::removeAll(newTempDir);
}

//////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions test/integration/zip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,3 @@ TEST_F(ZipIntegrationTest, Compress)
EXPECT_TRUE(ignition::common::removeAll(boxPath));
EXPECT_FALSE(ignition::common::exists(boxPath));
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}

0 comments on commit bd50422

Please sign in to comment.