Debian Codegraph @

utest/global_mock.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 * Test fixtures and mocks of global shared state.
18 */
19
20 #ifndef GLOBAL_MOCK_H
21 #define GLOBAL_MOCK_H
22
23
24 extern char **collect_out;
25 extern int collect_out_size;
26
27 extern char **collect_err;
28 extern int collect_err_size;
29
30 void collect_reset();
31
32
33 void setup_mocks();
34 void teardown();
35
36
37 #endif
38
39 /* vim: set cindent sw=4: */