MCPcopy Create free account
hub / github.com/apache/cloudberry / plunit_assert_equals_message

Function plunit_assert_equals_message

gpcontrib/orafce/plunit.c:261–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261Datum
262plunit_assert_equals_message(PG_FUNCTION_ARGS)
263{
264 char *message = assert_get_message(fcinfo, 3, "plunit.assert_equal exception");
265
266 /* skip all tests for NULL value */
267 if (PG_ARGISNULL(0) || PG_ARGISNULL(1))
268 ereport(ERROR,
269 (errcode(ERRCODE_CHECK_VIOLATION),
270 errmsg("%s", message),
271 errdetail("Plunit.assertation fails (assert_equals).")));
272
273 if (!assert_equals_base(fcinfo))
274 ereport(ERROR,
275 (errcode(ERRCODE_CHECK_VIOLATION),
276 errmsg("%s", message),
277 errdetail("Plunit.assertation fails (assert_equals).")));
278
279 PG_RETURN_VOID();
280}
281
282Datum
283plunit_assert_equals_range(PG_FUNCTION_ARGS)

Callers 1

plunit_assert_equalsFunction · 0.85

Calls 5

assert_get_messageFunction · 0.85
assert_equals_baseFunction · 0.85
errcodeFunction · 0.50
errmsgFunction · 0.50
errdetailFunction · 0.50

Tested by

no test coverage detected