MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/core/lib/core/status_test.cc:26–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace tensorflow {
25
26TEST(Status, OK) {
27 EXPECT_EQ(Status::OK().code(), error::OK);
28 EXPECT_EQ(Status::OK().error_message(), "");
29 TF_EXPECT_OK(Status::OK());
30 TF_ASSERT_OK(Status::OK());
31 EXPECT_EQ(Status::OK(), Status());
32 Status s;
33 EXPECT_TRUE(s.ok());
34}
35
36TEST(DeathStatus, CheckOK) {
37 Status status(errors::InvalidArgument("Invalid"));

Callers

nothing calls this directly

Calls 11

InvalidArgumentFunction · 0.85
InternalFunction · 0.85
CancelledFunction · 0.85
as_summary_statusMethod · 0.80
StatusClass · 0.70
StrContainsFunction · 0.50
codeMethod · 0.45
okMethod · 0.45
ToStringMethod · 0.45
UpdateMethod · 0.45

Tested by

no test coverage detected