| 109 | } |
| 110 | |
| 111 | int |
| 112 | main(int argc, char *argv[]) |
| 113 | { |
| 114 | Catch::Session session; |
| 115 | |
| 116 | using namespace Catch::clara; |
| 117 | |
| 118 | // clang-format off |
| 119 | auto cli = session.cli() | |
| 120 | Opt(conf.nthreads, "")["--ts-nthreads"]("number of threads (default: 1)") | |
| 121 | Opt(conf.nread, "")["--ts-nread"]("number of read op (default: 1)") | |
| 122 | Opt(conf.nwrite, "")["--ts-nwrite"]("number of write op (default: 1)") | |
| 123 | Opt(conf.nloop, "")["--ts-nloop"]("number of read-write loop (default: 1)"); |
| 124 | // clang-format on |
| 125 | |
| 126 | session.cli(cli); |
| 127 | |
| 128 | int returnCode = session.applyCommandLine(argc, argv); |
| 129 | if (returnCode != 0) { |
| 130 | return returnCode; |
| 131 | } |
| 132 | |
| 133 | return session.run(); |
| 134 | } |
nothing calls this directly
no test coverage detected