MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / TEST

Function TEST

framework/test/gtest/BundleVersionTest.cpp:28–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26using cppmicroservices::BundleVersion;
27
28TEST(BundleVersion, EmptyVersion)
29{
30 auto empty = BundleVersion::EmptyVersion();
31 unsigned int zero(0);
32 ASSERT_EQ(zero, empty.GetMajor());
33 ASSERT_EQ(zero, empty.GetMinor());
34 ASSERT_EQ(zero, empty.GetMicro());
35 ASSERT_EQ(std::string(), empty.GetQualifier());
36 ASSERT_FALSE(empty.IsUndefined());
37 ASSERT_NO_THROW(BundleVersion stEmpty(std::string {}));
38}
39
40TEST(BundleVersion, UndefinedVersion)
41{

Callers

nothing calls this directly

Calls 9

BundleVersionClass · 0.85
GetMajorMethod · 0.80
GetMinorMethod · 0.80
GetMicroMethod · 0.80
GetQualifierMethod · 0.80
IsUndefinedMethod · 0.80
EmptyVersionMethod · 0.80
ToStringMethod · 0.45
CompareMethod · 0.45

Tested by

no test coverage detected