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

Method Release

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

Source from the content-addressed store, hash-verified

77 }
78
79 TTestItem* Release()
80 {
81 YT_VERIFY(!AcquiredItemIndices_.empty());
82 size_t index = AcquiredItemIndices_.top();
83 AcquiredItemIndices_.pop();
84 return Items_[index].get();
85 }
86
87private:
88 inline static std::vector<std::unique_ptr<TTestItem>> Items_;

Callers 3

TESTFunction · 0.45
TEST_PFunction · 0.45
TESTFunction · 0.45

Calls 3

emptyMethod · 0.45
popMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected