MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / TEST

Function TEST

unitTests/test_IptcKey.cpp:10–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8using namespace Exiv2;
9
10TEST(IptcKey, creationWithNonValidStringFormatThrows) {
11 try {
12 IptcKey key("Yeah");
13 FAIL();
14 } catch (const Exiv2::Error& e) {
15 ASSERT_EQ(ErrorCode::kerInvalidKey, e.code());
16 ASSERT_STREQ("Invalid key 'Yeah'", e.what());
17 }
18}
19
20TEST(IptcKey, creationWithNonValidRecordNameThrows) {
21 try {

Callers

nothing calls this directly

Calls 11

whatMethod · 0.80
codeMethod · 0.45
cloneMethod · 0.45
keyMethod · 0.45
familyNameMethod · 0.45
groupNameMethod · 0.45
recordNameMethod · 0.45
tagNameMethod · 0.45
tagLabelMethod · 0.45
tagMethod · 0.45
recordMethod · 0.45

Tested by

no test coverage detected