| 305 | } |
| 306 | |
| 307 | Datum |
| 308 | plunit_assert_equals_range_message(PG_FUNCTION_ARGS) |
| 309 | { |
| 310 | char *message = assert_get_message(fcinfo, 4, "plunit.assert_equal exception"); |
| 311 | |
| 312 | /* skip all tests for NULL value */ |
| 313 | if (PG_ARGISNULL(0) || PG_ARGISNULL(1) || PG_ARGISNULL(2)) |
| 314 | ereport(ERROR, |
| 315 | (errcode(ERRCODE_CHECK_VIOLATION), |
| 316 | errmsg("%s", message), |
| 317 | errdetail("Plunit.assertation fails (assert_equals)."))); |
| 318 | |
| 319 | if (!assert_equals_range_base(fcinfo)) |
| 320 | ereport(ERROR, |
| 321 | (errcode(ERRCODE_CHECK_VIOLATION), |
| 322 | errmsg("%s", message), |
| 323 | errdetail("Plunit.assertation fails (assert_equals)."))); |
| 324 | |
| 325 | PG_RETURN_VOID(); |
| 326 | } |
| 327 | |
| 328 | |
| 329 | /**************************************************************** |
no test coverage detected