HelenOS sources
mock 55 uspace/lib/cpp/include/__bits/test/mock.hpp mock(const mock&)
mock 60 uspace/lib/cpp/include/__bits/test/mock.hpp mock(mock&&)
mock 172 uspace/lib/cpp/src/__bits/test/future.cpp mock::clear();
mock 173 uspace/lib/cpp/src/__bits/test/future.cpp std::aux::shared_state<std::test::mock>* s5{};
mock 175 uspace/lib/cpp/src/__bits/test/future.cpp std::promise<std::test::mock> p5{};
mock 183 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("state not destroyed with future", mock::destructor_calls, 0U);
mock 185 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("state destroyed with promise", mock::destructor_calls, 1U);
mock 187 uspace/lib/cpp/src/__bits/test/future.cpp mock::clear();
mock 189 uspace/lib/cpp/src/__bits/test/future.cpp std::aux::shared_state<std::test::mock>* s6{};
mock 190 uspace/lib/cpp/src/__bits/test/future.cpp std::future<std::test::mock> f6{};
mock 192 uspace/lib/cpp/src/__bits/test/future.cpp std::promise<std::test::mock> p6{};
mock 200 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("state not destroyed with promise", mock::destructor_calls, 0U);
mock 202 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("state destroyed with future", mock::destructor_calls, 1U);
mock 108 uspace/lib/cpp/src/__bits/test/memory.cpp mock::clear();
mock 110 uspace/lib/cpp/src/__bits/test/memory.cpp auto ptr = std::make_unique<mock>();
mock 114 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("unique_ptr make_unique", mock::constructor_calls, 1U);
mock 115 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("unique_ptr out of scope", mock::destructor_calls, 1U);
mock 117 uspace/lib/cpp/src/__bits/test/memory.cpp mock::clear();
mock 119 uspace/lib/cpp/src/__bits/test/memory.cpp auto ptr = std::make_unique<mock>();
mock 122 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("unique_ptr release", mock::destructor_calls, 1U);
mock 124 uspace/lib/cpp/src/__bits/test/memory.cpp mock::clear();
mock 126 uspace/lib/cpp/src/__bits/test/memory.cpp auto ptr = std::make_unique<mock>();
mock 127 uspace/lib/cpp/src/__bits/test/memory.cpp ptr.reset(new mock{});
mock 129 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("unique_ptr reset", mock::destructor_calls, 2U);
mock 131 uspace/lib/cpp/src/__bits/test/memory.cpp mock::clear();
mock 133 uspace/lib/cpp/src/__bits/test/memory.cpp std::unique_ptr<mock> ptr1{};
mock 137 uspace/lib/cpp/src/__bits/test/memory.cpp auto ptr2 = std::make_unique<mock>();
mock 140 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("unique_ptr move pt1", mock::destructor_calls, 0U);
mock 142 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("unique_ptr move pt2", mock::destructor_calls, 1U);
mock 144 uspace/lib/cpp/src/__bits/test/memory.cpp mock::clear();
mock 146 uspace/lib/cpp/src/__bits/test/memory.cpp auto ptr = std::make_unique<mock[]>(10U);
mock 147 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("unique_ptr make_unique array version", mock::constructor_calls, 10U);
mock 149 uspace/lib/cpp/src/__bits/test/memory.cpp new(&ptr[5]) mock{};
mock 150 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("placement new into the array", mock::constructor_calls, 11U);
mock 151 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("original not destroyed during placement new", mock::destructor_calls, 0U);
mock 153 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("unique_ptr array out of scope", mock::destructor_calls, 10U);
mock 158 uspace/lib/cpp/src/__bits/test/memory.cpp mock::clear();
mock 160 uspace/lib/cpp/src/__bits/test/memory.cpp auto ptr1 = std::make_shared<mock>();
mock 161 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("shared_ptr make_shared", mock::constructor_calls, 1U);
mock 167 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("shared_ptr copy no constructor call", mock::copy_constructor_calls, 0U);
mock 177 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("shared_ptr copy out of scope", mock::destructor_calls, 0U);
mock 179 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("shared_ptr original out of scope", mock::destructor_calls, 1U);
mock 184 uspace/lib/cpp/src/__bits/test/memory.cpp mock::clear();
mock 186 uspace/lib/cpp/src/__bits/test/memory.cpp std::weak_ptr<mock> wptr1{};
mock 188 uspace/lib/cpp/src/__bits/test/memory.cpp auto ptr1 = std::make_shared<mock>();
mock 191 uspace/lib/cpp/src/__bits/test/memory.cpp std::weak_ptr<mock> wptr2 = ptr1;
mock 200 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("shared object destroyed while weak_ptr exists", mock::destructor_calls, 1U);
mock 33 uspace/lib/cpp/src/__bits/test/mock.cpp size_t mock::constructor_calls{};
mock 34 uspace/lib/cpp/src/__bits/test/mock.cpp size_t mock::copy_constructor_calls{};
mock 35 uspace/lib/cpp/src/__bits/test/mock.cpp size_t mock::destructor_calls{};
mock 36 uspace/lib/cpp/src/__bits/test/mock.cpp size_t mock::move_constructor_calls{};
HelenOS homepage, sources at GitHub