GCC Code Coverage Report


Directory: include/tts/
File: include/tts/engine/usage.hpp
Date: 2026-10-14 16:28:14
Exec Total Coverage
Lines: 0 4 0.0%
Functions: 0 1 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 //======================================================================================================================
2 /*
3 TTS - Tiny Test System
4 Copyright : TTS Contributors & Maintainers
5 SPDX-License-Identifier: BSL-1.0
6 */
7 //======================================================================================================================
8 #pragma once
9
10 namespace tts::_
11 {
12 inline constexpr auto usage_text =
13 R"(
14 Flags:
15 -h, --help Display this help message
16 -x, --hex Print the floating results in hexfloat mode
17 -s, --scientific Print the floating results in scientific mode
18 -v, --verbose Display tests results regardless of their status.
19 -q, --quiet Display only test failures percentage.
20 --allow-empty Do not fail when the test suite registered zero test.
21 --dry Print registered test names without running them.
22 --no-crash-guard Leave a crash to the system instead of naming the case that caused it.
23
24 Parameters:
25 --precision=arg Set the precision for displaying floating pint values
26 --seed=arg Set the PRNG seeds (default is time-based)
27 --capture=path Capture this run's output and write it to path instead of stdout
28 --shard=i/n Only run the tests in shard i of n (0 <= i < n), for CI parallelization
29 --timeout=arg Kill the run when a case is still going after arg milliseconds
30
31 Range specifics Parameters:
32 --block=arg Set size of range checks samples (min. 32)
33 --loop=arg Repeat each range checks arg times
34 --ulpmax=arg Set global failure ulp threshold for range tests (default is 2.0)
35 --valmax=arg Set maximal value for range tests (default is code)
36 --valmin=arg Set minimal value for range tests (default is code)
37 )";
38
39 //====================================================================================================================
40 // Prints the CLI option of any TTS test executable
41 //====================================================================================================================
42 ✗ inline int usage(char const* name)
43 {
44 ✗ printf("TTS Unit Tests Driver\nUsage: %s [OPTION...]", name);
45 ✗ puts(usage_text);
46 ✗ return 0;
47 }
48 }
49