| 138 | } |
| 139 | |
| 140 | int main(int, char** argv) |
| 141 | { |
| 142 | // catch donut::logs |
| 143 | donut::log::SetCallback([](donut::log::Severity s, char const* msg) -> void { |
| 144 | logs.push_back({ s, std::string(msg) }); |
| 145 | }); |
| 146 | |
| 147 | try |
| 148 | { |
| 149 | test_commands(); |
| 150 | test_variables(); |
| 151 | } |
| 152 | catch (const std::runtime_error & err) |
| 153 | { |
| 154 | fprintf(stderr, "%s", err.what()); |
| 155 | return 1; |
| 156 | } |
| 157 | return 0; |
| 158 | } |
nothing calls this directly
no test coverage detected