Lines Matching refs:makeOptional

204         auto o = makeOptional(1);  in TEST()
211 auto o = makeOptional(std::vector<char>{'1', '2'}); in TEST()
219 auto o = makeOptional("String"); in TEST()
226 auto o = makeOptional<std::string>("String"); in TEST()
233 auto o = makeOptional<std::string>(5, 'b'); in TEST()
240 auto o = makeOptional<std::string>(); in TEST()
249 auto o = makeOptional(std::unique_ptr<int>(new int(10))); in TEST()
291 auto o = makeOptional(1); in TEST()
300 auto o = makeOptional(1); in TEST()
309 auto o = makeOptional(std::vector<int>{1,2,3,4}); in TEST()
323 auto o = makeOptional(std::vector<int>{1,2,3,4}); in TEST()
336 EXPECT_TRUE(makeOptional(1) == makeOptional(1)); in TEST()
337 EXPECT_TRUE(makeOptional(1) == 1); in TEST()
338 EXPECT_TRUE(1 == makeOptional(1)); in TEST()
339 EXPECT_FALSE(makeOptional(1) == makeOptional(2)); in TEST()
340 EXPECT_FALSE(makeOptional(2) == 1); in TEST()
341 EXPECT_FALSE(2 == makeOptional(1)); in TEST()
342 EXPECT_TRUE(makeOptional(1) != makeOptional(2)); in TEST()
343 EXPECT_TRUE(makeOptional(1) != 2); in TEST()
344 EXPECT_TRUE(1 != makeOptional(2)); in TEST()
346 EXPECT_FALSE(makeOptional(1) == kNullopt); in TEST()
347 EXPECT_FALSE(makeOptional(1) == Optional<int>()); in TEST()
348 EXPECT_FALSE(kNullopt == makeOptional(1)); in TEST()
349 EXPECT_FALSE(Optional<int>() == makeOptional(1)); in TEST()
350 EXPECT_TRUE(makeOptional(1) != kNullopt); in TEST()
351 EXPECT_TRUE(makeOptional(1) != Optional<int>()); in TEST()
352 EXPECT_TRUE(kNullopt != makeOptional(1)); in TEST()
353 EXPECT_TRUE(Optional<int>() != makeOptional(1)); in TEST()
364 EXPECT_TRUE(makeOptional(1) < makeOptional(2)); in TEST()
365 EXPECT_TRUE(1 < makeOptional(2)); in TEST()
366 EXPECT_TRUE(makeOptional(1) < 2); in TEST()
368 EXPECT_FALSE(makeOptional(1) < makeOptional(1)); in TEST()
369 EXPECT_FALSE(1 < makeOptional(1)); in TEST()
370 EXPECT_FALSE(makeOptional(1) < 1); in TEST()
371 EXPECT_FALSE(makeOptional(2) < makeOptional(1)); in TEST()
372 EXPECT_FALSE(2 < makeOptional(1)); in TEST()
373 EXPECT_FALSE(makeOptional(2) < 1); in TEST()
375 EXPECT_TRUE(kNullopt < makeOptional(2)); in TEST()
376 EXPECT_TRUE(Optional<int>() < makeOptional(2)); in TEST()
378 EXPECT_FALSE(makeOptional(2) < kNullopt); in TEST()
379 EXPECT_FALSE(makeOptional(2) < Optional<int>()); in TEST()
424 auto o = makeOptional(Track(counter)); in TEST()
430 auto o = makeOptional(Track(counter)); in TEST()
438 auto o = makeOptional(Track(counter)); in TEST()
455 auto o = makeOptional(Track(counter)); in TEST()