Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
4ecebab3
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
大约 1 年 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
You need to sign in or sign up before continuing.
提交
4ecebab3
编写于
5月 18, 2021
作者:
S
SloveZT
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add new test case fix reviewbot
上级
28b8a6de
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
31 addition
and
28 deletion
+31
-28
distributeddatamgr_lite/dbm_kv_store_hal/src/dbm_kv_store_func_test.c
...atamgr_lite/dbm_kv_store_hal/src/dbm_kv_store_func_test.c
+31
-28
未找到文件。
distributeddatamgr_lite/dbm_kv_store_hal/src/dbm_kv_store_func_test.c
浏览文件 @
4ecebab3
...
@@ -93,7 +93,7 @@ static BOOL PutKVs(int num, const char* key, const char* content)
...
@@ -93,7 +93,7 @@ static BOOL PutKVs(int num, const char* key, const char* content)
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
,
value1
;
}
value
,
value1
;
if
(
num
<=
0
)
{
if
(
num
<=
0
)
{
return
FALSE
;
return
FALSE
;
...
@@ -106,7 +106,9 @@ static BOOL PutKVs(int num, const char* key, const char* content)
...
@@ -106,7 +106,9 @@ static BOOL PutKVs(int num, const char* key, const char* content)
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
i
;
value
.
num
=
i
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
content
);
int
ret
=
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
content
);
EXPECT_EQ
(
0
,
ret
);
status
=
DBM_Put
(
g_KVStoreHandle
,
keytemp
,
(
void
*
)
&
value
,
sizeof
(
value
));
status
=
DBM_Put
(
g_KVStoreHandle
,
keytemp
,
(
void
*
)
&
value
,
sizeof
(
value
));
if
(
i
<=
MAX_KEY_NUM_TEST
)
{
if
(
i
<=
MAX_KEY_NUM_TEST
)
{
...
@@ -144,7 +146,7 @@ static BOOL GetKVs(int num, const char* key, const char* content)
...
@@ -144,7 +146,7 @@ static BOOL GetKVs(int num, const char* key, const char* content)
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
,
value1
;
}
value
,
value1
;
if
(
num
<=
0
)
{
if
(
num
<=
0
)
{
return
FALSE
;
return
FALSE
;
...
@@ -157,7 +159,8 @@ static BOOL GetKVs(int num, const char* key, const char* content)
...
@@ -157,7 +159,8 @@ static BOOL GetKVs(int num, const char* key, const char* content)
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
loop
;
value
.
num
=
loop
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
content
);
int
ret
=
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
content
);
EXPECT_EQ
(
0
,
ret
);
memset_s
(
&
value1
,
sizeof
(
value1
),
0
,
sizeof
(
value1
));
memset_s
(
&
value1
,
sizeof
(
value1
),
0
,
sizeof
(
value1
));
unsigned
int
realValLen
=
0
;
unsigned
int
realValLen
=
0
;
...
@@ -204,7 +207,7 @@ static BOOL DeleteKVs(int num, const char* key)
...
@@ -204,7 +207,7 @@ static BOOL DeleteKVs(int num, const char* key)
IoTWatchDogKick
();
IoTWatchDogKick
();
return
TRUE
;
return
TRUE
;
}
}
//#if 0
/**
/**
* @tc.number : SUB_UTILS_KV_STORE_0100
* @tc.number : SUB_UTILS_KV_STORE_0100
* @tc.name : DBM_Put parameter legal test
* @tc.name : DBM_Put parameter legal test
...
@@ -217,7 +220,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue001, Function | Mediu
...
@@ -217,7 +220,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue001, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
;
}
value
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
...
@@ -250,7 +253,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue002, Function | Mediu
...
@@ -250,7 +253,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue002, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
;
}
value
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
...
@@ -274,7 +277,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue003, Function | Mediu
...
@@ -274,7 +277,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue003, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
;
}
value
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
...
@@ -298,7 +301,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue004, Function | Mediu
...
@@ -298,7 +301,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue004, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
;
}
value
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
...
@@ -322,7 +325,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue005, Function | Mediu
...
@@ -322,7 +325,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue005, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
;
}
value
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
...
@@ -343,7 +346,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue006, Function | Mediu
...
@@ -343,7 +346,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue006, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
;
}
value
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
...
@@ -364,7 +367,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue007, Function | Mediu
...
@@ -364,7 +367,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue007, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
;
}
value
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
...
@@ -385,7 +388,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue008, Function | Mediu
...
@@ -385,7 +388,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue008, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
;
}
value
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
...
@@ -406,7 +409,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue009, Function | Mediu
...
@@ -406,7 +409,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue009, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
;
}
value
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
...
@@ -427,7 +430,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue010, Function | Mediu
...
@@ -427,7 +430,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue010, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
;
}
value
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
...
@@ -448,7 +451,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue011, Function | Mediu
...
@@ -448,7 +451,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue011, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
507
];
char
content
[
507
];
}
value
;
}
value
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
...
@@ -472,7 +475,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue012, Function | Mediu
...
@@ -472,7 +475,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue012, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
509
];
char
content
[
509
];
}
value
;
}
value
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
...
@@ -493,7 +496,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue013, Function | Mediu
...
@@ -493,7 +496,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue013, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
512
];
char
content
[
512
];
}
value
;
}
value
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
...
@@ -514,7 +517,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue014, Function | Mediu
...
@@ -514,7 +517,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue014, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
512
];
char
content
[
512
];
}
value
;
}
value
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
...
@@ -535,7 +538,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue015, Function | Mediu
...
@@ -535,7 +538,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue015, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
508
];
char
content
[
508
];
}
value
;
}
value
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"!@#¥%……&*()——+~《》?,。、“‘;:、12345767890"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"!@#¥%……&*()——+~《》?,。、“‘;:、12345767890"
);
...
@@ -559,7 +562,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue016, Function | Mediu
...
@@ -559,7 +562,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue016, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
;
}
value
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"Hello world !"
);
...
@@ -580,7 +583,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue017, Function | Mediu
...
@@ -580,7 +583,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreSetValue017, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
;
}
value
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
" "
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
" "
);
...
@@ -604,7 +607,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreGetValue001, Function | Mediu
...
@@ -604,7 +607,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreGetValue001, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
,
value1
;
}
value
,
value1
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"It is never too old to learn"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"It is never too old to learn"
);
...
@@ -637,7 +640,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreGetValue002, Function | Mediu
...
@@ -637,7 +640,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreGetValue002, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
,
value1
;
}
value
,
value1
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"!@#¥%……&*()——+~《》?,。、“‘;:、12345767890"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"!@#¥%……&*()——+~《》?,。、“‘;:、12345767890"
);
...
@@ -670,7 +673,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreGetValue003, Function | Mediu
...
@@ -670,7 +673,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreGetValue003, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
,
value1
,
value2
;
}
value
,
value1
,
value2
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"It is never too old to learn"
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
"It is never too old to learn"
);
...
@@ -714,7 +717,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreGetValue004, Function | Mediu
...
@@ -714,7 +717,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreGetValue004, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
;
}
value
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
unsigned
int
realValLen
=
0
;
unsigned
int
realValLen
=
0
;
...
@@ -734,7 +737,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreGetValue005, Function | Mediu
...
@@ -734,7 +737,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreGetValue005, Function | Mediu
struct
{
struct
{
int
num
;
int
num
;
char
content
[
200
];
char
content
[
200
];
}
value
,
value1
;
}
value
,
value1
;
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
memset_s
(
&
value
,
sizeof
(
value
),
0
,
sizeof
(
value
));
value
.
num
=
1
;
value
.
num
=
1
;
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
" "
);
strcpy_s
(
value
.
content
,
sizeof
(
value
.
content
),
" "
);
...
@@ -854,7 +857,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreMaxSize003, Function | Medium
...
@@ -854,7 +857,7 @@ LITE_TEST_CASE(DBMKvStoreFuncTestSuite, testKvStoreMaxSize003, Function | Medium
TEST_FAIL
();
TEST_FAIL
();
}
}
};
};
//#endif
/**
/**
* @tc.number : SUB_UTILS_KV_STORE_3200
* @tc.number : SUB_UTILS_KV_STORE_3200
* @tc.name : Specification test using InvalidKeyNum
* @tc.name : Specification test using InvalidKeyNum
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录