2021-11-04 14:12:40 +01:00
|
|
|
/*
|
|
|
|
* boxes - Command line filter to draw/remove ASCII boxes around text
|
2024-02-16 22:01:58 +01:00
|
|
|
* Copyright (c) 1999-2024 Thomas Jensen and the boxes contributors
|
2021-11-04 14:12:40 +01:00
|
|
|
*
|
2022-09-18 14:56:30 +02:00
|
|
|
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
|
|
|
|
* License, version 3, as published by the Free Software Foundation.
|
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
|
|
|
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
|
|
* details.
|
|
|
|
* You should have received a copy of the GNU General Public License along with this program.
|
|
|
|
* If not, see <https://www.gnu.org/licenses/>.
|
2021-11-04 14:12:40 +01:00
|
|
|
*
|
2022-09-18 14:56:30 +02:00
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
2021-11-04 14:12:40 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Unit tests of the 'cmdline' module
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CMDLINE_TEST_H
|
|
|
|
#define CMDLINE_TEST_H
|
|
|
|
|
|
|
|
|
|
|
|
void test_indentmode_none(void **state);
|
|
|
|
void test_indentmode_invalid_long(void **state);
|
|
|
|
void test_indentmode_invalid_short(void **state);
|
|
|
|
void test_indentmode_box(void **state);
|
|
|
|
void test_indentmode_text(void **state);
|
|
|
|
|
2021-11-04 21:53:35 +01:00
|
|
|
void test_killblank_true(void **state);
|
|
|
|
void test_killblank_false(void **state);
|
|
|
|
void test_killblank_invalid(void **state);
|
|
|
|
void test_killblank_multiple(void **state);
|
2023-05-06 22:43:11 +02:00
|
|
|
void test_killblank_long(void **state);
|
2021-11-04 21:53:35 +01:00
|
|
|
|
2021-11-05 14:07:58 +01:00
|
|
|
void test_padding_top_bottom(void **state);
|
|
|
|
void test_padding_invalid(void **state);
|
|
|
|
void test_padding_negative(void **state);
|
|
|
|
void test_padding_notset(void **state);
|
|
|
|
void test_padding_invalid_value(void **state);
|
|
|
|
void test_padding_novalue(void **state);
|
|
|
|
|
2021-11-05 14:28:13 +01:00
|
|
|
void test_tabstops_zero(void **state);
|
|
|
|
void test_tabstops_500(void **state);
|
|
|
|
void test_tabstops_4X(void **state);
|
|
|
|
void test_tabstops_4e(void **state);
|
|
|
|
void test_tabstops_4ex(void **state);
|
|
|
|
void test_tabstops_7(void **state);
|
|
|
|
|
2021-11-05 21:10:11 +01:00
|
|
|
void test_alignment_invalid_hX(void **state);
|
|
|
|
void test_alignment_invalid_vX(void **state);
|
|
|
|
void test_alignment_invalid_jX(void **state);
|
|
|
|
void test_alignment_notset(void **state);
|
|
|
|
void test_alignment_incomplete(void **state);
|
|
|
|
|
2021-11-05 21:48:50 +01:00
|
|
|
void test_inputfiles_illegal_third_file(void **state);
|
|
|
|
void test_inputfiles_stdin_stdout(void **state);
|
|
|
|
void test_inputfiles_stdin(void **state);
|
|
|
|
void test_inputfiles_input_nonexistent(void **state);
|
|
|
|
void test_inputfiles_actual_success(void **state);
|
|
|
|
|
2021-11-05 22:02:55 +01:00
|
|
|
void test_command_line_design_empty(void **state);
|
|
|
|
|
|
|
|
void test_help(void **state);
|
|
|
|
void test_version_requested(void **state);
|
|
|
|
|
2021-11-04 14:12:40 +01:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2024-09-22 14:34:55 +02:00
|
|
|
/* vim: set cindent sw=4: */
|