MCPcopy Create free account
hub / github.com/dmlc/xgboost / TestExceptionCatching

Function TestExceptionCatching

tests/cpp/c_api/test_c_api.cc:262–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262int TestExceptionCatching() {
263 API_BEGIN();
264 throw std::bad_alloc();
265 API_END();
266}
267
268TEST(CAPI, Exception) {
269 ASSERT_NO_THROW({ TestExceptionCatching(); });

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected