• Home
  • Raw
  • Download

Lines Matching refs:thing

231   absl::StatusOr<std::unique_ptr<int>> thing(ReturnUniquePtr());  in TEST()  local
232 ASSERT_TRUE(thing.ok()); in TEST()
233 EXPECT_EQ(0, **thing); in TEST()
234 int* previous = thing->get(); in TEST()
236 thing = ReturnUniquePtr(); in TEST()
237 EXPECT_TRUE(thing.ok()); in TEST()
238 EXPECT_EQ(0, **thing); in TEST()
239 EXPECT_NE(previous, thing->get()); in TEST()
243 absl::StatusOr<std::unique_ptr<int>> thing(ReturnUniquePtr()); in TEST() local
244 ASSERT_TRUE(thing.ok()); in TEST()
245 std::unique_ptr<int> ptr = *std::move(thing); in TEST()
248 thing = std::move(ptr); in TEST()
249 ptr = std::move(*thing); in TEST()
290 absl::StatusOr<int> thing; in TEST() local
291 EXPECT_FALSE(thing.ok()); in TEST()
292 EXPECT_EQ(thing.status().code(), absl::StatusCode::kUnknown); in TEST()
316 absl::StatusOr<int> thing; in TEST() local
317 EXPECT_DEATH_OR_THROW(thing.value(), absl::UnknownError("")); in TEST()
323 absl::StatusOr<int> thing(absl::CancelledError()); in TEST() local
324 EXPECT_DEATH_OR_THROW(thing.value(), absl::CancelledError()); in TEST()
328 const absl::StatusOr<int> thing(absl::UnknownError("")); in TEST() local
329 EXPECT_DEATH_OR_THROW(thing.value(), absl::UnknownError("")); in TEST()
333 absl::StatusOr<int*> thing; in TEST() local
334 EXPECT_DEATH_OR_THROW(thing.value(), absl::UnknownError("")); in TEST()
338 absl::StatusOr<int*> thing(absl::CancelledError()); in TEST() local
339 EXPECT_DEATH_OR_THROW(thing.value(), absl::CancelledError()); in TEST()
343 const absl::StatusOr<int*> thing(absl::CancelledError()); in TEST() local
344 EXPECT_DEATH_OR_THROW(thing.value(), absl::CancelledError()); in TEST()
352 absl::StatusOr<int> thing(absl::OkStatus()); in TEST()
355 EXPECT_FALSE(thing.ok()); in TEST()
356 EXPECT_EQ(thing.status().code(), absl::StatusCode::kInternal); in TEST()
364 absl::StatusOr<int*> thing(absl::OkStatus()); in TEST()
367 EXPECT_FALSE(thing.ok()); in TEST()
368 EXPECT_EQ(thing.status().code(), absl::StatusCode::kInternal); in TEST()
399 absl::StatusOr<int> thing(absl::CancelledError()); in TEST() local
400 EXPECT_FALSE(thing.ok()); in TEST()
401 EXPECT_EQ(thing.status().code(), absl::StatusCode::kCancelled); in TEST()
408 const absl::StatusOr<int> thing(kI); in TEST() local
409 EXPECT_TRUE(thing.ok()); in TEST()
410 EXPECT_EQ(kI, *thing); in TEST()
1276 absl::StatusOr<int> thing(kI); in TEST() local
1277 EXPECT_EQ(kI, *thing); in TEST()
1282 const absl::StatusOr<int> thing(kI); in TEST() local
1283 EXPECT_EQ(kI, *thing); in TEST()
1287 absl::StatusOr<int*> thing; in TEST() local
1288 EXPECT_FALSE(thing.ok()); in TEST()
1289 EXPECT_EQ(thing.status().code(), absl::StatusCode::kUnknown); in TEST()
1295 absl::StatusOr<int*> thing(absl::CancelledError()); in TEST() local
1296 EXPECT_FALSE(thing.ok()); in TEST()
1297 EXPECT_EQ(thing.status().code(), absl::StatusCode::kCancelled); in TEST()
1400 absl::StatusOr<const int*> thing(&kI); in TEST() local
1401 EXPECT_EQ(&kI, *thing); in TEST()
1406 const absl::StatusOr<const int*> thing(&kI); in TEST() local
1407 EXPECT_EQ(&kI, *thing); in TEST()