MCPcopy Create free account
hub / github.com/AGenUI/AGenUI / TEST

Function TEST

tests/cpp/function_call/builtins_test.cpp:983–987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

981// ============================================================================
982
983TEST(FunctionCallResolution, CreateSuccess_StatusIsSuccess) {
984 auto r = FunctionCallResolution::createSuccess(42);
985 EXPECT_EQ(r.getStatus(), FunctionCallStatus::Success);
986 EXPECT_EQ(r.getValue(), 42);
987}
988
989TEST(FunctionCallResolution, CreateError_StatusIsError) {
990 auto r = FunctionCallResolution::createError("oops");

Callers

nothing calls this directly

Calls 5

getStatusMethod · 0.80
getValueMethod · 0.80
isAsyncMethod · 0.80
isCompletedMethod · 0.80
toJsonMethod · 0.45

Tested by

no test coverage detected