Debian Codegraph @

utest/cmdline_test.h

raw
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 CMDLINE_TEST_H
21 #define CMDLINE_TEST_H
22
23
24 void test_indentmode_none(void **state);
25 void test_indentmode_invalid_long(void **state);
26 void test_indentmode_invalid_short(void **state);
27 void test_indentmode_box(void **state);
28 void test_indentmode_text(void **state);
29
30 void test_killblank_true(void **state);
31 void test_killblank_false(void **state);
32 void test_killblank_invalid(void **state);
33 void test_killblank_multiple(void **state);
34 void test_killblank_long(void **state);
35
36 void test_padding_top_bottom(void **state);
37 void test_padding_invalid(void **state);
38 void test_padding_negative(void **state);
39 void test_padding_notset(void **state);
40 void test_padding_invalid_value(void **state);
41 void test_padding_novalue(void **state);
42
43 void test_tabstops_zero(void **state);
44 void test_tabstops_500(void **state);
45 void test_tabstops_4X(void **state);
46 void test_tabstops_4e(void **state);
47 void test_tabstops_4ex(void **state);
48 void test_tabstops_7(void **state);
49
50 void test_alignment_invalid_hX(void **state);
51 void test_alignment_invalid_vX(void **state);
52 void test_alignment_invalid_jX(void **state);
53 void test_alignment_notset(void **state);
54 void test_alignment_incomplete(void **state);
55
56 void test_inputfiles_illegal_third_file(void **state);
57 void test_inputfiles_stdin_stdout(void **state);
58 void test_inputfiles_stdin(void **state);
59 void test_inputfiles_input_nonexistent(void **state);
60 void test_inputfiles_actual_success(void **state);
61
62 void test_command_line_design_empty(void **state);
63
64 void test_help(void **state);
65 void test_version_requested(void **state);
66
67
68 #endif
69
70 /* vim: set cindent sw=4: */