From 24f5c8b562a1f642687aa1bee3aec334a5911a11 Mon Sep 17 00:00:00 2001 From: David Lin Date: Sun, 28 Jun 2020 18:23:31 +0800 Subject: [PATCH] Update fdb_kvdb_tc.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改函数名称及注释,提高代码可读性 test_easyflash_init -> test_fdb_kvdb_init FDB_USING_TSDB -> FDB_USING_KVDB --- tests/fdb_kvdb_tc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/fdb_kvdb_tc.c b/tests/fdb_kvdb_tc.c index 4aac623..be99182 100644 --- a/tests/fdb_kvdb_tc.c +++ b/tests/fdb_kvdb_tc.c @@ -18,8 +18,8 @@ #include #define TEST_TS_PART_NAME "fdb_kvdb1" -#define TEST_KV_BLOB_NAME "kv_blob_test" -#define TEST_KV_NAME "kv_test" +#define TEST_KV_BLOB_NAME "kv_blob_test" +#define TEST_KV_NAME "kv_test" #if defined(RT_USING_UTEST) && defined(FDB_USING_KVDB) @@ -32,7 +32,7 @@ static struct fdb_default_kv_node default_kv_set[] = { static struct fdb_kvdb test_kvdb; -static void test_easyflash_init(void) +static void test_fdb_kvdb_init(void) { struct fdb_default_kv default_kv; @@ -174,7 +174,7 @@ static rt_err_t utest_tc_cleanup(void) static void testcase(void) { - UTEST_UNIT_RUN(test_easyflash_init); + UTEST_UNIT_RUN(test_fdb_kvdb_init); UTEST_UNIT_RUN(test_fdb_create_kv_blob); UTEST_UNIT_RUN(test_fdb_change_kv_blob); UTEST_UNIT_RUN(test_fdb_del_kv_blob); @@ -184,4 +184,4 @@ static void testcase(void) } UTEST_TC_EXPORT(testcase, "packages.tools.flashdb.kvdb", utest_tc_init, utest_tc_cleanup, 20); -#endif /* defined(RT_USING_UTEST) && defined(FDB_USING_TSDB) */ +#endif /* defined(RT_USING_UTEST) && defined(FDB_USING_KVDB) */