MCPcopy Create free account
hub / github.com/apache/arrow / TEST

Function TEST

cpp/src/arrow/status_test.cc:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65};
66
67TEST(StatusTest, TestCodeAndMessage) {
68 Status ok = Status::OK();
69 ASSERT_EQ(StatusCode::OK, ok.code());
70 Status file_error = Status::IOError("file error");
71 ASSERT_EQ(StatusCode::IOError, file_error.code());
72 ASSERT_EQ("file error", file_error.message());
73}
74
75TEST(StatusTest, TestToString) {
76 Status file_error = Status::IOError("file error");

Callers

nothing calls this directly

Calls 15

IOErrorFunction · 0.85
RaisesFunction · 0.85
ReturnNotOkFunction · 0.85
StripContextFunction · 0.85
strMethod · 0.80
AddContextLineMethod · 0.80
OKFunction · 0.70
InvalidFunction · 0.70
TypeErrorFunction · 0.70
StatusClass · 0.50
codeMethod · 0.45

Tested by

no test coverage detected