Skip to content

Commit

Permalink
Drop all test main functions
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Mar 15, 2022
1 parent d50255a commit b62c690
Show file tree
Hide file tree
Showing 38 changed files with 0 additions and 254 deletions.
7 changes: 0 additions & 7 deletions av/src/AudioDecoder_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,3 @@ TEST(AudioDecoder, IGN_UTILS_TEST_DISABLED_ON_WIN32(CheerFile))
dataBufferSize == 4987612u * 2);
}
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions events/src/Event_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,3 @@ TEST_F(EventTest, DestructionOrder)
conn.reset();
SUCCEED();
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions events/src/MouseEvent_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,3 @@ TEST_F(MouseEvent, Assignment)
EXPECT_EQ(otherEvent.Alt(), alt);
EXPECT_EQ(otherEvent.Control(), control);
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions geospatial/src/Dem_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,3 @@ TEST_F(DemTest, NonEarthDem)
ignition::math::Angle latitude, longitude;
EXPECT_FALSE(dem.GeoReferenceOrigin(latitude, longitude));
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions geospatial/src/ImageHeightmap_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,3 @@ TEST_F(ImageHeightmapTest, FillHeightmap)
EXPECT_NEAR(10.0, elevations.at(elevations.size() - 1), ELEVATION_TOL);
EXPECT_NEAR(5.0, elevations.at(elevations.size() / 2), ELEVATION_TOL);
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions graphics/src/Animation_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,3 @@ TEST_F(AnimationTest, TrajectoryInfo)
EXPECT_DOUBLE_EQ(0.0, trajInfo4.DistanceSoFar(2000ms));
EXPECT_DOUBLE_EQ(0.0, trajInfo4.DistanceSoFar(3000ms));
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions graphics/src/ColladaExporter_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,3 @@ TEST_F(ColladaExporter, ExportLights)
}
EXPECT_EQ(node_with_light_count, 3);
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions graphics/src/ColladaLoader_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -489,10 +489,3 @@ TEST_F(ColladaLoader, LoadCylinderAnimatedFrom3dsMax)
EXPECT_EQ(1u, anim->NodeCount());
EXPECT_TRUE(anim->HasNode("Bone02"));
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions graphics/src/GTSMeshUtils_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,3 @@ TEST_F(GTSMeshUtils, DelaunayTriangulation)
// there should be 8 triangles.
EXPECT_EQ(subMesh.IndexCount() / 3u, 8u);
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions graphics/src/Image_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,3 @@ INSTANTIATE_TEST_SUITE_P(FlatHeightmaps, ImagePerformanceTest,
std::make_tuple("heightmap_flat_257x257.png", 257u, 257u),
std::make_tuple("heightmap_flat_513x513.png", 513u, 513u),
std::make_tuple("heightmap_flat_1025x1025.png", 1025u, 1025u)));

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions graphics/src/Material_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,3 @@ TEST_F(MaterialTest, Material)
EXPECT_NE(nullptr, mat.PbrMaterial());
EXPECT_EQ(pbr, *mat.PbrMaterial());
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions graphics/src/MeshManager_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,4 @@ TEST_F(MeshManager, Remove)
mgr->RemoveAll();
EXPECT_FALSE(mgr->HasMesh("sphere"));
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
#endif
7 changes: 0 additions & 7 deletions graphics/src/Mesh_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,3 @@ TEST_F(MeshTest, Mesh)
EXPECT_TRUE(math::equal(vertices[2], submesh.lock()->Vertex(0).Z()));
EXPECT_EQ(indices[0], submesh.lock()->Index(0));
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions graphics/src/OBJLoader_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,3 @@ TEST_F(OBJLoaderTest, PBR)
EXPECT_EQ("mesh_Normal.png", pbr->NormalMap());
}
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions graphics/src/SVGLoader_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,3 @@ TEST_F(SVGLoaderTest, MultipleFiles)
out.close();
}
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions graphics/src/SubMesh_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -502,10 +502,3 @@ TEST_F(SubMeshTest, Volume)
boxSub.AddIndex(1);
EXPECT_DOUBLE_EQ(0.0, boxSub.Volume());
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/Base64_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,3 @@ TEST_F(Base64, EncodeDecode)
}
EXPECT_EQ(original, common::Base64::Decode(encoded));
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
6 changes: 0 additions & 6 deletions src/Battery_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,3 @@ TEST_F(BatteryTest, SetUpdateFunc)

EXPECT_DOUBLE_EQ(battery->Voltage(), origVolt);
}

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

EXPECT_EQ(logDir, absPath);
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
8 changes: 0 additions & 8 deletions src/Filesystem_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -641,11 +641,3 @@ TEST_F(FilesystemTest, separator)
EXPECT_EQ("\\", ignition::common::separator(""));
#endif
}

/////////////////////////////////////////////////
/// Main
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/MaterialDensity_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,3 @@ TEST_F(MaterialDensityTest, Accessors)
EXPECT_DOUBLE_EQ(density, 19300);
}
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
6 changes: 0 additions & 6 deletions src/MovingWindowFilter_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,3 @@ TEST(MovingWindowFilterTest, FilterSomething)
3.0*static_cast<double>(i));
EXPECT_EQ(vectorMWF.Value(), vsum / 20.0);
}

int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/PluginLoader_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,3 @@ TEST(PluginLoader, InstantiateUnloadedPlugin)
pm.Instantiate("plugin::that::is::not::loaded");
EXPECT_FALSE(plugin);
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
8 changes: 0 additions & 8 deletions src/PluginUtils_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,3 @@ TEST(PluginUtils, NormalizeName)
EXPECT_EQ("::ignition::math", common::NormalizeName("ignition::math"));
EXPECT_EQ("::ignition::math", common::NormalizeName("::ignition::math"));
}

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

8 changes: 0 additions & 8 deletions src/StringUtils_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,3 @@ TEST(EndsWith, PluralCast)
EXPECT_EQ("oxen", common::PluralCast("ox", "oxen", -3));
EXPECT_EQ("oxen", common::PluralCast("ox", "oxen", -4));
}

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

7 changes: 0 additions & 7 deletions src/SystemPaths_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,3 @@ TEST_F(SystemPathsFixture, PathsFromEnv)
++count;
}
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
1 change: 0 additions & 1 deletion src/TempDirectory_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,3 @@ TEST(TempDirectory, TempDirectoryNoCleanLater)
EXPECT_TRUE(ignition::common::exists(path));
EXPECT_TRUE(ignition::common::removeDirectory(path));
}

6 changes: 0 additions & 6 deletions src/TemplateHelpers_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,3 @@ TEST(TemplateHelpers, ConstCompatible)
EXPECT_TRUE((ConstCompatible<SomeAliasedType, SomeType>::value));
EXPECT_FALSE((ConstCompatible<SomeType, SomeAliasedType>::value));
}

int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/Timer_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,3 @@ TEST(Timer_TEST, Copy)
EXPECT_FALSE(t1.Running());
EXPECT_FALSE(t2.Running());
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/URI_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1006,10 +1006,3 @@ TEST(URITEST, Resource)
EXPECT_TRUE(uri.Path().IsAbsolute());
}
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/Util_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,3 @@ TEST(Util_TEST, findFile)
ignition::common::addFindFileURICallback(fileCb);
EXPECT_EQ(tmpDir, ignition::common::findFile("model://banana"));
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions src/Uuid_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,3 @@ TEST(UuidTest, testToString)
for (auto i = 24; i < 36; ++i)
EXPECT_GT(isxdigit(output.str()[i]), 0);
}

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

//////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions test/integration/mesh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,3 @@ TEST_F(MeshTest, SubMeshCenter)
EXPECT_EQ(ignition::math::Vector3d(5.46554, 2.18039, 4.8431), mesh->Max());
EXPECT_EQ(ignition::math::Vector3d(3.46555, 0.180391, 2.8431), mesh->Min());
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 0 additions & 7 deletions test/integration/plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,3 @@ TEST(PluginPtr, QueryInterfaceSharedPtr)
SetSomeValues(setter);
CheckSomeValues(getInt, getDouble, getName);
}

/////////////////////////////////////////////////
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
1 change: 0 additions & 1 deletion test/integration/video_encoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,3 @@ TEST_F(EncoderDecoderTest, DecodeEncodeDecode)

delete[] buf;
}

7 changes: 0 additions & 7 deletions test/performance/plugin_specialization.cc
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,3 @@ TEST(PluginSpecialization, AccessTime)
<< "ns\n" << std::endl;
}
}


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

0 comments on commit b62c690

Please sign in to comment.