| 159 | } |
| 160 | |
| 161 | Datum |
| 162 | plunit_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 | /**************************************************************** |
no test coverage detected