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

Function TEST

library/cpp/yt/memory/unittests/function_view_ut.cpp:68–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66////////////////////////////////////////////////////////////////////////////////
67
68TEST(TFunctionViewTest, JustWorks)
69{
70 auto stackLambda = [] (int val) {
71 return val + 1;
72 };
73
74 {
75 TFunctionView<int(int)> view(stackLambda);
76
77 EXPECT_EQ(view(42), 43);
78 }
79}
80
81TEST(TFunctionViewTest, FreeFunction)
82{

Callers

nothing calls this directly

Calls 2

IsValidMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected