Lines Matching refs:ConstructorTracker

195 struct ConstructorTracker {  struct
203 ConstructorTracker(T&& string) : string(string) { in ConstructorTracker() function
207 ConstructorTracker(const ConstructorTracker& ct) { in ConstructorTracker() function
211 ConstructorTracker(ConstructorTracker&& ct) noexcept { in ConstructorTracker() function
215 ConstructorTracker& operator=(const ConstructorTracker& ct) { in operator =() argument
220 ConstructorTracker& operator=(ConstructorTracker&& ct) noexcept { in operator =() argument
229 size_t ConstructorTracker::constructor_called = 0;
230 size_t ConstructorTracker::copy_constructor_called = 0;
231 size_t ConstructorTracker::move_constructor_called = 0;
232 size_t ConstructorTracker::copy_assignment_called = 0;
233 size_t ConstructorTracker::move_assignment_called = 0;
235 Result<ConstructorTracker> ReturnConstructorTracker(const std::string& in) { in ReturnConstructorTracker()
240 return ConstructorTracker(in + in + "2"); in ReturnConstructorTracker()
242 ConstructorTracker result(in + " " + in); in ReturnConstructorTracker()
259 EXPECT_EQ(1U, ConstructorTracker::constructor_called); in TEST()
260 EXPECT_EQ(0U, ConstructorTracker::copy_constructor_called); in TEST()
261 EXPECT_EQ(0U, ConstructorTracker::move_constructor_called); in TEST()
262 EXPECT_EQ(0U, ConstructorTracker::copy_assignment_called); in TEST()
263 EXPECT_EQ(0U, ConstructorTracker::move_assignment_called); in TEST()
268 EXPECT_EQ(2U, ConstructorTracker::constructor_called); in TEST()
269 EXPECT_EQ(0U, ConstructorTracker::copy_constructor_called); in TEST()
270 EXPECT_EQ(1U, ConstructorTracker::move_constructor_called); in TEST()
271 EXPECT_EQ(0U, ConstructorTracker::copy_assignment_called); in TEST()
272 EXPECT_EQ(0U, ConstructorTracker::move_assignment_called); in TEST()
277 EXPECT_EQ(3U, ConstructorTracker::constructor_called); in TEST()
278 EXPECT_EQ(0U, ConstructorTracker::copy_constructor_called); in TEST()
279 EXPECT_EQ(2U, ConstructorTracker::move_constructor_called); in TEST()
280 EXPECT_EQ(0U, ConstructorTracker::copy_assignment_called); in TEST()
281 EXPECT_EQ(0U, ConstructorTracker::move_assignment_called); in TEST()