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

Function plunit_assert_equals_range_message

gpcontrib/orafce/plunit.c:307–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307Datum
308plunit_assert_equals_range_message(PG_FUNCTION_ARGS)
309{
310 char *message = assert_get_message(fcinfo, 4, "plunit.assert_equal exception");
311
312 /* skip all tests for NULL value */
313 if (PG_ARGISNULL(0) || PG_ARGISNULL(1) || PG_ARGISNULL(2))
314 ereport(ERROR,
315 (errcode(ERRCODE_CHECK_VIOLATION),
316 errmsg("%s", message),
317 errdetail("Plunit.assertation fails (assert_equals).")));
318
319 if (!assert_equals_range_base(fcinfo))
320 ereport(ERROR,
321 (errcode(ERRCODE_CHECK_VIOLATION),
322 errmsg("%s", message),
323 errdetail("Plunit.assertation fails (assert_equals).")));
324
325 PG_RETURN_VOID();
326}
327
328
329/****************************************************************

Callers 1

Calls 5

assert_get_messageFunction · 0.85
assert_equals_range_baseFunction · 0.85
errcodeFunction · 0.50
errmsgFunction · 0.50
errdetailFunction · 0.50

Tested by

no test coverage detected