| 126 | } |
| 127 | |
| 128 | Datum |
| 129 | plunit_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 |
no test coverage detected