• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <gtest/gtest.h>
2 #include <resolv.h>
3 using namespace testing::ext;
4 
5 class ResolvTest : public testing::Test {
SetUp()6     void SetUp() override {}
TearDown()7     void TearDown() override {}
8 };
9 
10 /**
11  * @tc.name: res_init_001
12  * @tc.desc: Verify that the "res_init" function successfully initializes the resolver state without encountering any
13  *           errors or exceptions.
14  * @tc.type: FUNC
15  **/
16 HWTEST_F(ResolvTest, res_init_001, TestSize.Level1)
17 {
18     EXPECT_EQ(0, res_init());
19 }