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

Function TEST

cpp/src/arrow/status_test.cc:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58};
59
60TEST(StatusTest, TestCodeAndMessage) {
61 Status ok = Status::OK();
62 ASSERT_EQ(StatusCode::OK, ok.code());
63 Status file_error = Status::IOError("file error");
64 ASSERT_EQ(StatusCode::IOError, file_error.code());
65 ASSERT_EQ("file error", file_error.message());
66}
67
68TEST(StatusTest, TestToString) {
69 Status file_error = Status::IOError("file error");

Callers

nothing calls this directly

Calls 15

IOErrorFunction · 0.85
RaisesFunction · 0.85
fFunction · 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