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

Function TEST

unitTests/test_Error.cpp:9–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7using namespace Exiv2;
8
9TEST(Error, parameterInsertion) {
10 const Error err_with_3_params(ErrorCode::kerGeneralError, "foo", "bar", "baz");
11 ASSERT_STREQ(err_with_3_params.what(), "Error 1: arg2=bar, arg3=baz, arg1=foo.");
12
13 const Error err_with_no_params(ErrorCode::kerSuccess);
14 ASSERT_STREQ(err_with_no_params.what(), "Success");
15}
16
17TEST(Error, tooManyParameters) {
18 const Error err_with_no_params(ErrorCode::kerSuccess, "a param", "another param");

Callers

nothing calls this directly

Calls 1

whatMethod · 0.80

Tested by

no test coverage detected