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

Function plunit_assert_null_message

gpcontrib/orafce/plunit.c:128–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128Datum
129plunit_assert_null_message(PG_FUNCTION_ARGS)
130{
131 char *message = assert_get_message(fcinfo, 2, "plunit.assert_null exception");
132
133 if (!PG_ARGISNULL(0))
134 ereport(ERROR,
135 (errcode(ERRCODE_CHECK_VIOLATION),
136 errmsg("%s", message),
137 errdetail("Plunit.assertation fails (assert_null).")));
138
139 PG_RETURN_VOID();
140}
141
142/****************************************************************
143 * plunit.assert_not_null

Callers 1

plunit_assert_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