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

Function TEST

framework/test/gtest/SecurityExceptionTest.cpp:30–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#include "gtest/gtest.h"
29
30TEST(SecurityExceptionTest, ctor)
31{
32
33 cppmicroservices::Bundle b;
34 std::string excMessage { "foo" };
35 cppmicroservices::SecurityException secException(excMessage, b);
36
37 cppmicroservices::SecurityException copyOfException = secException;
38
39 ASSERT_EQ(b, secException.GetBundle());
40 ASSERT_STREQ(excMessage.c_str(), secException.what());
41
42 ASSERT_EQ(b, copyOfException.GetBundle());
43 ASSERT_STREQ(excMessage.c_str(), copyOfException.what());
44}

Callers

nothing calls this directly

Calls 2

GetBundleMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected