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

Function TEST

unitTests/test_LangAltValueRead.cpp:12–24  ·  view source on GitHub ↗

1. No language value

Source from the content-addressed store, hash-verified

10
11// 1. No language value
12TEST(LangAltValueReadTest, noLanguageValBeforeSpace) {
13 XmpParser::initialize();
14 ::atexit(XmpParser::terminate);
15
16 Exiv2::XmpData xmpData;
17 try {
18 xmpData["Xmp.dc.title"] = "lang= test1-1";
19 } catch (Error& e) {
20 ASSERT_EQ(e.code(), Exiv2::ErrorCode::kerInvalidLangAltValue);
21 } catch (...) {
22 ASSERT_TRUE(false);
23 }
24}
25
26TEST(LangAltValueReadTest, quoteThenNoLanguageValBeforeSpace) {
27 XmpParser::initialize();

Callers

nothing calls this directly

Calls 1

codeMethod · 0.45

Tested by

no test coverage detected