Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
262
int TestExceptionCatching() {
263
API_BEGIN();
264
throw std::bad_alloc();
265
API_END();
266
}
267
268
TEST(CAPI, Exception) {
269
ASSERT_NO_THROW({ TestExceptionCatching(); });
Callers
1
TEST
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected