add more unit test for location and sts

This commit is contained in:
zhangzifa
2019-02-15 18:18:05 +08:00
committed by Jackson Tian
parent 5f3caa1943
commit 043df1b674
5 changed files with 210 additions and 100 deletions

View File

@@ -30,4 +30,8 @@ TEST(Error, basic) {
EXPECT_TRUE(error.errorCode() == code1);
EXPECT_TRUE(error.errorMessage() == message1);
const string detail = "any error detail";
error.setDetail(detail);
EXPECT_TRUE(error.detail() == detail);
}