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

Function plunit_assert_not_null_message

gpcontrib/orafce/plunit.c:161–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161Datum
162plunit_assert_not_null_message(PG_FUNCTION_ARGS)
163{
164 char *message = assert_get_message(fcinfo, 2, "plunit.assert_not_null exception");
165
166 if (PG_ARGISNULL(0))
167 ereport(ERROR,
168 (errcode(ERRCODE_CHECK_VIOLATION),
169 errmsg("%s", message),
170 errdetail("Plunit.assertation fails (assert_not_null).")));
171
172 PG_RETURN_VOID();
173}
174
175
176/****************************************************************

Callers 1

plunit_assert_not_nullFunction · 0.85

Calls 4

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

Tested by

no test coverage detected