Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 89a7574

Browse files
authored
Add status_test for invalid status code. (#239)
1 parent 083fa40 commit 89a7574

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

opencensus/common/internal/grpc/status_test.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ TEST(StatusTest, NotOK) {
2929
"You must construct additional pylons.")));
3030
}
3131

32+
TEST(StatusTest, InvalidCode) {
33+
EXPECT_EQ(
34+
"invalid status code value: Invalid.",
35+
ToString(grpc::Status(static_cast<grpc::StatusCode>(-1), "Invalid.")));
36+
}
37+
3238
} // namespace
3339
} // namespace common
3440
} // namespace opencensus

0 commit comments

Comments
 (0)