| 259 | } |
| 260 | |
| 261 | Datum |
| 262 | plunit_assert_equals_message(PG_FUNCTION_ARGS) |
| 263 | { |
| 264 | char *message = assert_get_message(fcinfo, 3, "plunit.assert_equal exception"); |
| 265 | |
| 266 | /* skip all tests for NULL value */ |
| 267 | if (PG_ARGISNULL(0) || PG_ARGISNULL(1)) |
| 268 | ereport(ERROR, |
| 269 | (errcode(ERRCODE_CHECK_VIOLATION), |
| 270 | errmsg("%s", message), |
| 271 | errdetail("Plunit.assertation fails (assert_equals)."))); |
| 272 | |
| 273 | if (!assert_equals_base(fcinfo)) |
| 274 | ereport(ERROR, |
| 275 | (errcode(ERRCODE_CHECK_VIOLATION), |
| 276 | errmsg("%s", message), |
| 277 | errdetail("Plunit.assertation fails (assert_equals)."))); |
| 278 | |
| 279 | PG_RETURN_VOID(); |
| 280 | } |
| 281 | |
| 282 | Datum |
| 283 | plunit_assert_equals_range(PG_FUNCTION_ARGS) |
no test coverage detected