Test the TextUtil.h interfaces.
More...
#include <bsl/front/TextUtil.h>
#include <string.h>
#include <unity.h>
|
| void | test_BSL_TextUtil_Base16_Encode (const char *data, size_t data_len, bool uppercase, const char *expect) |
| |
| void | test_BSL_TextUtil_Base16_Decode_valid (const char *text, const char *expect, size_t expect_len) |
| |
| void | test_BSL_TextUtil_Base16_Decode_invalid (const char *text) |
| |
| | TEST_CASE ("\xc1\x04\xc4\xcf\xb7\x77\x0f\xf0\xbe\xba\xa2\xe9\x5f\xbc\x2c\x18", 16, false, true) |
| |
| void | test_BSL_TextUtil_Base64_Decode_valid (const char *text, const char *expect, size_t expect_len) |
| |
| void | test_BSL_TextUtil_Base64_Decode_invalid (const char *text) |
| |
Test the TextUtil.h interfaces.
◆ TEST_CASE
◆ test_BSL_TextUtil_Base16_Decode_invalid()
| void test_BSL_TextUtil_Base16_Decode_invalid |
( |
const char * |
text | ) |
|
◆ test_BSL_TextUtil_Base16_Decode_valid()
| void test_BSL_TextUtil_Base16_Decode_valid |
( |
const char * |
text, |
|
|
const char * |
expect, |
|
|
size_t |
expect_len |
|
) |
| |
◆ test_BSL_TextUtil_Base16_Encode()
| void test_BSL_TextUtil_Base16_Encode |
( |
const char * |
data, |
|
|
size_t |
data_len, |
|
|
bool |
uppercase, |
|
|
const char * |
expect |
|
) |
| |
◆ test_BSL_TextUtil_Base64_Decode_invalid()
| void test_BSL_TextUtil_Base64_Decode_invalid |
( |
const char * |
text | ) |
|
◆ test_BSL_TextUtil_Base64_Decode_valid()
| void test_BSL_TextUtil_Base64_Decode_valid |
( |
const char * |
text, |
|
|
const char * |
expect, |
|
|
size_t |
expect_len |
|
) |
| |
◆ TEST_CASE()
| TEST_CASE |
( |
"\xc1\x04\xc4\xcf\xb7\x77\x0f\xf0\xbe\xba\xa2\xe9\x5f\xbc\x2c\x18" |
, |
|
|
|
16, |
|
|
|
false, |
|
|
|
true |
|
) |
| |