Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ClickHouse/ai-sdk-cpp
/ setShouldFail
Method
setShouldFail
tests/utils/mock_openai_client.cpp:28–30 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
26
}
27
28
void ControllableOpenAIClient::setShouldFail(bool fail) {
29
should_fail_ = fail;
30
}
31
32
void ControllableOpenAIClient::setShouldTimeout(bool timeout) {
33
should_timeout_ = timeout;
Callers
2
TEST_F
Function · 0.45
TEST_F
Function · 0.45
Calls
no outgoing calls
Tested by
2
TEST_F
Function · 0.36
TEST_F
Function · 0.36