Lines Matching refs:stat1
122 nvs_stats_t stat1; variable
124 TEST_ESP_ERR(ESP_ERR_NVS_NOT_INITIALIZED, nvs_get_stats(NULL, &stat1));
125 TEST_ASSERT_TRUE(stat1.free_entries == 0);
126 TEST_ASSERT_TRUE(stat1.namespace_count == 0);
127 TEST_ASSERT_TRUE(stat1.total_entries == 0);
128 TEST_ASSERT_TRUE(stat1.used_entries == 0);
147 TEST_ESP_OK(nvs_get_stats(NULL, &stat1));
148 if(stat1.namespace_count != 0) {
155 TEST_ESP_OK(nvs_get_stats(NULL, &stat1));
156 TEST_ASSERT_TRUE(stat1.free_entries != 0);
157 TEST_ASSERT_TRUE(stat1.namespace_count == 0);
158 TEST_ASSERT_TRUE(stat1.total_entries != 0);
159 TEST_ASSERT_TRUE(stat1.used_entries == 0);
165 TEST_ASSERT_TRUE(stat2.free_entries + 1 == stat1.free_entries);
167 TEST_ASSERT_TRUE(stat2.total_entries == stat1.total_entries);
172 TEST_ESP_OK(nvs_get_stats(NULL, &stat1));
173 TEST_ASSERT_TRUE(stat1.free_entries + 1 == stat2.free_entries);
174 TEST_ASSERT_TRUE(stat1.namespace_count == 1);
175 TEST_ASSERT_TRUE(stat1.total_entries == stat2.total_entries);
176 TEST_ASSERT_TRUE(stat1.used_entries == 2);
181 TEST_ASSERT_TRUE(stat2.free_entries == stat1.free_entries);
188 TEST_ESP_OK(nvs_get_stats(NULL, &stat1));
189 TEST_ASSERT_TRUE(stat1.free_entries + 1 == stat2.free_entries);
190 TEST_ASSERT_TRUE(stat1.namespace_count == 1);
191 TEST_ASSERT_TRUE(stat1.total_entries != 0);
192 TEST_ASSERT_TRUE(stat1.used_entries == 3);
203 TEST_ASSERT_TRUE(stat2.free_entries + 1 == stat1.free_entries);
205 TEST_ASSERT_TRUE(stat2.total_entries == stat1.total_entries);
212 TEST_ESP_OK(nvs_get_stats(NULL, &stat1));
213 TEST_ASSERT_TRUE(stat1.free_entries + 3 == stat2.free_entries);
214 TEST_ASSERT_TRUE(stat1.namespace_count == 2);
215 TEST_ASSERT_TRUE(stat1.total_entries == stat2.total_entries);
216 TEST_ASSERT_TRUE(stat1.used_entries == 7);
218 TEST_ASSERT_TRUE(stat1.total_entries == (stat1.used_entries + stat1.free_entries));
225 …TEST_ASSERT_TRUE(stat1.used_entries == (h1_count_entries + h2_count_entries + stat1.namespace_coun…
240 TEST_ASSERT_TRUE(stat2.free_entries + 1 == stat1.free_entries);
242 TEST_ASSERT_TRUE(stat2.total_entries == stat1.total_entries);
248 TEST_ESP_OK(nvs_get_stats(NULL, &stat1));
249 TEST_ASSERT_TRUE(stat1.free_entries + 4 == stat2.free_entries);
250 TEST_ASSERT_TRUE(stat1.namespace_count == 3);
251 TEST_ASSERT_TRUE(stat1.total_entries == stat2.total_entries);
252 TEST_ASSERT_TRUE(stat1.used_entries == 12);
259 …TEST_ASSERT_TRUE(stat1.used_entries == (h1_count_entries + h2_count_entries + h3_count_entries + s…