| 1 |
/* |
| 2 |
* boxes - Command line filter to draw/remove ASCII boxes around text |
| 3 |
* Copyright (c) 1999-2024 Thomas Jensen and the boxes contributors |
| 4 |
* |
| 5 |
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public |
| 6 |
* License, version 3, as published by the Free Software Foundation. |
| 7 |
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied |
| 8 |
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
| 9 |
* details. |
| 10 |
* You should have received a copy of the GNU General Public License along with this program. |
| 11 |
* If not, see <https://www.gnu.org/licenses/>. |
| 12 |
* |
| 13 |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
| 14 |
*/ |
| 15 |
|
| 16 |
/* |
| 17 |
* Unit tests of the 'cmdline' module |
| 18 |
*/ |
| 19 |
|
| 20 |
#ifndef BXSTRING_TEST_H |
| 21 |
#define BXSTRING_TEST_H |
| 22 |
|
| 23 |
|
| 24 |
void test_ascii_simple(void **state); |
| 25 |
void test_ascii_illegalchar(void **state); |
| 26 |
void test_ascii_null(void **state); |
| 27 |
|
| 28 |
void test_ansi_unicode_book(void **state); |
| 29 |
void test_ansi_unicode_space_kinds(void **state); |
| 30 |
void test_ansi_unicode_chinese(void **state); |
| 31 |
void test_ansi_unicode_empty(void **state); |
| 32 |
void test_ansi_unicode_blanks(void **state); |
| 33 |
void test_ansi_unicode_invisible_only(void **state); |
| 34 |
void test_ansi_unicode_illegalchar(void **state); |
| 35 |
void test_ansi_unicode_tabs(void **state); |
| 36 |
void test_ansi_unicode_broken_escapes(void **state); |
| 37 |
void test_ansi_unicode_null(void **state); |
| 38 |
void test_ansi_unicode_tc183(void **state); |
| 39 |
|
| 40 |
void test_bxs_new_empty_string(void **state); |
| 41 |
|
| 42 |
void test_bxs_is_blank(void **state); |
| 43 |
|
| 44 |
void test_bxs_strdup(void **state); |
| 45 |
|
| 46 |
void test_bxs_cut_front(void **state); |
| 47 |
void test_bxs_cut_front_zero(void **state); |
| 48 |
|
| 49 |
void test_bxs_first_char_ptr_errors(void **state); |
| 50 |
|
| 51 |
void test_bxs_last_char_ptr(void **state); |
| 52 |
|
| 53 |
void test_bxs_unindent_ptr_null(void **state); |
| 54 |
|
| 55 |
void test_bxs_trimdup_null(void **state); |
| 56 |
void test_bxs_trimdup_invalid_startidx(void **state); |
| 57 |
void test_bxs_trimdup_invalid_endidx(void **state); |
| 58 |
void test_bxs_trimdup_invalid_endidx2(void **state); |
| 59 |
void test_bxs_trimdup_normal(void **state); |
| 60 |
void test_bxs_trimdup_vanish(void **state); |
| 61 |
void test_bxs_trimdup_ansi(void **state); |
| 62 |
void test_bxs_trimdup_ansi_same(void **state); |
| 63 |
|
| 64 |
void test_bxs_substr_errors(void **state); |
| 65 |
|
| 66 |
void test_bxs_strcat(void **state); |
| 67 |
void test_bxs_strcat_empty(void **state); |
| 68 |
void test_bxs_strcat_empty2(void **state); |
| 69 |
void test_bxs_strcat_empty3(void **state); |
| 70 |
|
| 71 |
void test_bxs_strchr(void **state); |
| 72 |
void test_bxs_strchr_empty(void **state); |
| 73 |
void test_bxs_strchr_cursor(void **state); |
| 74 |
|
| 75 |
void test_bxs_trim(void **state); |
| 76 |
void test_bxs_trim_blanks(void **state); |
| 77 |
void test_bxs_trim_none(void **state); |
| 78 |
|
| 79 |
void test_bxs_ltrim2(void **state); |
| 80 |
void test_bxs_ltrim5(void **state); |
| 81 |
void test_bxs_ltrim_empty(void **state); |
| 82 |
void test_bxs_ltrim_max(void **state); |
| 83 |
|
| 84 |
void test_bxs_rtrim(void **state); |
| 85 |
void test_bxs_rtrim_empty(void **state); |
| 86 |
|
| 87 |
void test_bxs_prepend_spaces_null(void **state); |
| 88 |
|
| 89 |
void test_bxs_append_spaces(void **state); |
| 90 |
|
| 91 |
void test_bxs_to_output(void **state); |
| 92 |
|
| 93 |
void test_bxs_is_empty_null(void **state); |
| 94 |
|
| 95 |
void test_bxs_is_visible_char(void **state); |
| 96 |
|
| 97 |
void test_bxs_filter_visible(void **state); |
| 98 |
void test_bxs_filter_visible_none(void **state); |
| 99 |
|
| 100 |
void test_bxs_strcmp(void **state); |
| 101 |
|
| 102 |
void test_bxs_valid_anywhere_error(void **state); |
| 103 |
void test_bxs_valid_in_filename_error(void **state); |
| 104 |
|
| 105 |
void test_bxs_free_null(void **state); |
| 106 |
|
| 107 |
void test_bxs_concat(void **state); |
| 108 |
void test_bxs_concat_nullarg(void **state); |
| 109 |
|
| 110 |
|
| 111 |
#endif |
| 112 |
|
| 113 |
/* vim: set cindent sw=4: */ |