Source
} /* end for each testcase */
/***************
* ERROR CASES *
***************/
dest = (char *)HDmalloc(sizeof(char) * 15);
HDassert(dest != NULL);
JSVERIFY( FAIL,
H5FD_s3comms_uriencode(NULL, "word$", 5, false, &dest_written),
H5FD_s3comms_uriencode(NULL, "word$", 5, FALSE, &dest_written),
"destination cannot be NULL" );
JSVERIFY( FAIL,
H5FD_s3comms_uriencode(dest, NULL, 5, false, &dest_written),
H5FD_s3comms_uriencode(dest, NULL, 5, FALSE, &dest_written),
"source string cannot be NULL" );
free(dest);
dest = NULL;
PASSED();
return 0;
error:
if (dest != NULL) {