• Home
  • Raw
  • Download

Lines Matching refs:config

66   ConfigFile config;  in TEST()  local
67 config.parseFromString(SIMPLE_CONFIG); in TEST()
68 EXPECT_FALSE(config.hasKey("UNKNOWN_VALUE")); in TEST()
69 EXPECT_FALSE(config.hasKey("COMMENTED_OUT_VALUE")); in TEST()
70 EXPECT_TRUE(config.hasKey("NUM_VALUE")); in TEST()
71 EXPECT_TRUE(config.hasKey("STRING_VALUE")); in TEST()
72 EXPECT_TRUE(config.hasKey("BYTES_VALUE")); in TEST()
76 ConfigFile config; in TEST() local
77 config.parseFromString(SIMPLE_CONFIG); in TEST()
78 EXPECT_EQ(config.getUnsigned("NUM_VALUE"), 42u); in TEST()
79 EXPECT_EQ(config.getString("STRING_VALUE"), "Hello World!"); in TEST()
80 auto bytes = config.getBytes("BYTES_VALUE"); in TEST()
103 ConfigFile config; in TEST() local
104 EXPECT_FALSE(config.hasKey("NUM_VALUE")); in TEST()
105 config.parseFromString(SIMPLE_CONFIG); in TEST()
106 EXPECT_TRUE(config.hasKey("NUM_VALUE")); in TEST()
107 EXPECT_EQ(config.getUnsigned("NUM_VALUE"), 42u); in TEST()
108 config.clear(); in TEST()
109 EXPECT_FALSE(config.hasKey("NUM_VALUE")); in TEST()
110 EXPECT_DEATH(config.getUnsigned("NUM_VALUE"), ""); in TEST()
114 ConfigFile config; in TEST() local
115 EXPECT_TRUE(config.isEmpty()); in TEST()
116 config.parseFromString(SIMPLE_CONFIG); in TEST()
117 EXPECT_FALSE(config.isEmpty()); in TEST()
118 config.clear(); in TEST()
119 EXPECT_TRUE(config.isEmpty()); in TEST()
123 ConfigFile config; in TEST_F() local
124 config.parseFromFile(SIMPLE_CONFIG_FILE); in TEST_F()
125 EXPECT_FALSE(config.hasKey("UNKNOWN_VALUE")); in TEST_F()
126 EXPECT_EQ(config.getUnsigned("NUM_VALUE"), 42u); in TEST_F()
127 EXPECT_EQ(config.getString("STRING_VALUE"), "Hello World!"); in TEST_F()
128 auto bytes = config.getBytes("BYTES_VALUE"); in TEST_F()