Commit Graph

206 Commits

Author SHA1 Message Date
openharmony_ci
bf471c967e
!295 modify codecheck
Merge pull request !295 from zhaojunxia/master
2023-09-13 09:24:31 +00:00
openharmony_ci
9bc8267a8d
!294 [napi_tool] add napi unittest cases about generate.test
Merge pull request !294 from 苟晶晶/master
2023-09-13 07:20:26 +00:00
zhaojunxia
8764bd5dc5 push test string code
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2023-09-12 23:54:11 -07:00
zhaojunxia
ad81c5b09c modify codecheck
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2023-09-12 23:35:21 -07:00
zhaojunxia
8a6ccbdd16 add notes for storytest
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2023-09-12 23:08:27 -07:00
zhaojunxia
5b9d10d706 add notes
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2023-09-12 23:07:22 -07:00
zhaojunxia
d608009493 Merge branch 'master' of https://gitee.com/zhaojunxia2020/napi_generator_0824 2023-09-12 23:05:33 -07:00
zhaojunxia
0989c01e5c add testcase for storytest
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2023-09-12 20:48:18 -07:00
gou-jingjing
f9be8e3f3f style: add napi unittest cases about generate.test
Signed-off-by: gou-jingjing <goujingjing@kaihong.com>
2023-09-13 11:34:11 +08:00
zhaojunxia
60eb1b6f58 Merge branch 'master' of gitee.com:openharmony/napi_generator into master
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2023-09-12 09:16:18 +00:00
zhaojunxia
f9aeb4dacc add notes for testcase
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2023-09-12 02:13:23 -07:00
zhaojunxia
135cccbbda Add string test case
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2023-09-12 00:47:37 -07:00
gou-jingjing
1dc738ba3d style: add napi unittest cases
Signed-off-by: gou-jingjing <goujingjing@kaihong.com>
2023-09-11 14:00:19 +08:00
openharmony_ci
ee0c556eb0
!291 【napi_tool】函数返回值类型Promise<string[]>生成代码报错
Merge pull request !291 from zhaojunxia/master
2023-09-08 02:20:08 +00:00
zhaojunxia
d7123498f7 support return type of Promise<string[]>
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2023-09-07 00:22:04 -07:00
openharmony_ci
94c106a47b
!289 [napi_tool] suport any map<Array<string/number/boolean>> and Array<map<string/number/boolean>>
Merge pull request !289 from 苟晶晶/master
2023-09-07 06:02:15 +00:00
openharmony_ci
b3671ae9dd
!290 Add map parameter case for test_string
Merge pull request !290 from zhaojunxia/master
2023-09-06 06:17:57 +00:00
gou-jingjing
66c8fa2f90 style: suport any map<Array<string/number/boolean>> and Array<map<string/number/boolean>>
Signed-off-by: gou-jingjing <goujingjing@kaihong.com>
2023-09-06 14:03:35 +08:00
zhaojunxia
1e5bc26a6f Add map parameter case for test_string
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2023-09-05 05:01:09 -07:00
openharmony_ci
cd3e239e78
!288 [napi_tool]add test case for string type
Merge pull request !288 from zhaojunxia/master
2023-09-01 08:48:14 +00:00
zhaojunxia
06b7413d5b modify notes
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2023-09-01 01:14:14 -07:00
zhaojunxia
ff2c33f5cc Add test string case
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2023-09-01 00:58:02 -07:00
gou-jingjing
d9726cc5f3 style: add feature that return value is promise anonymous interface
Signed-off-by: gou-jingjing <goujingjing@kaihong.com>
2023-09-01 10:39:53 +08:00
gou-jingjing
1e34f0c965 fix test_on and test_enum_interface bug, support class func paramType is enum
Signed-off-by: gou-jingjing <goujingjing@kaihong.com>
2023-08-15 16:44:23 +08:00
zhaojunxia
ebe732a72a support conversion of type keyword
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2023-08-08 13:46:16 +08:00
zhaojunxia
c341a62bf9 ADD Sample For on
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2023-05-23 10:43:43 +08:00
chenxun
8f26be7648 style: modify napi unit test cases
Signed-off-by: chenxun <chenxun@kaihong.com>
2023-01-29 14:52:05 +08:00
liuycag
4c7c47eed3 支持map_any类型转换
Signed-off-by: liuycag <liuycag@digitalchina.com>
2022-10-12 17:04:00 +08:00
zhaojunxia
82ba560572 Modify the documents based on the tool support
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2022-09-29 18:21:45 +08:00
zhaojunxia
df9a0a794d Fix: func para map value string[] error
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2022-09-26 02:28:39 -07:00
zhaojunxia
7a9180b793 Optimize ST test cases
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2022-09-26 10:19:25 +08:00
zhaojunxia
01c749a9c8 rename: x_napi_tool to tool_utility
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2022-09-21 00:48:50 -07:00
zhaojunxia
6a66485046 fix: test_union warning and union para at last error
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2022-09-20 19:20:04 -07:00
zhaojunxia
76c9259ff2 fix: modify array<any> function last para
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2022-09-20 04:57:51 -07:00
zhaojunxia
d53e742b20 support enum number and string
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2022-09-19 19:42:33 -07:00
zhaojunxia
144d64b96b Feat: support object for function para and return
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2022-09-16 00:10:31 -07:00
liuycag
be5658345e 支持以import形式转换同文件夹下引用接口文件
Signed-off-by: liuycag <liuycag@digitalchina.com>
2022-09-13 17:49:17 +08:00
openharmony_ci
9a5cb0d765
!121 【OpenHarmony开源贡献者计划2022】[napi_tool] support arrow function
Merge pull request !121 from zhangzhicheng007/master
2022-09-13 03:45:03 +00:00
zhangzhicheng007
bf6f224ad4 support arrow function
Signed-off-by: zhangzhicheng007 <zhangzhicheng@kaihong.com>
2022-09-09 14:07:49 +08:00
liuycag
845b3d97b7 新增any数组功能
Signed-off-by: liuycag <liuycag@digitalchina.com>
2022-09-09 10:22:51 +08:00
openharmony_ci
47bb4dfa51
!119 【OpenHarmony开源贡献者计划2022】【napi工具】支持union类型转换
Merge pull request !119 from liuycag/master
2022-09-06 08:17:46 +00:00
liuycag
8d1cf4f9c8 新增union类型转换
Signed-off-by: liuycag <liuycag@digitalchina.com>
2022-09-06 15:31:55 +08:00
zhangzhicheng007
455a375224 resolve confilcts
Signed-off-by: zhangzhicheng007 <zhangzhicheng@kaihong.com>
2022-09-02 15:23:50 +08:00
zhangzhicheng007
21b5e01955 support generating Promise
Signed-off-by: zhangzhicheng007 <zhangzhicheng@kaihong.com>
2022-09-02 09:54:57 +08:00
openharmony_ci
3a369fa177
!113 【OpenHarmony开源贡献者计划2022】【napi工具】支持any类型转换
Merge pull request !113 from liuycag/master
2022-09-01 10:00:09 +00:00
openharmony_ci
dc1230ba2d
!116 【OpenHarmony开源贡献者计划2022】[napi_tool] fix the issue of converting bool to int
Merge pull request !116 from zhangzhicheng007/master
2022-08-31 08:28:04 +00:00
liuycag
064c5b4a63 Merge branch 'master' of gitee.com:openharmony/napi_generator into master
Signed-off-by: liuycag <liuycag@digitalchina.com>
2022-08-31 08:25:31 +00:00
liuycag
74efe958c9 新增any类型转换
Signed-off-by: liuycag <liuycag@digitalchina.com>
2022-08-31 15:23:59 +08:00
zhangzhicheng007
4ef38fcbe0 fix issue of converting bool to int
Signed-off-by: zhangzhicheng007 <zhangzhicheng@kaihong.com>
2022-08-31 14:21:17 +08:00
zhangyitong
4ffbe15226 Feat: no name interface for function para and return
Signed-off-by: zhangyitong <zhangyitong@kaihong.com>
2022-08-30 19:13:02 -07:00
zhangzhicheng007
284af8cb41 fix issues of void callbak and array
Signed-off-by: zhangzhicheng007 <zhangzhicheng@kaihong.com>
2022-08-23 15:56:58 +08:00
openharmony_ci
272cbf1483
!107 【OpenHarmony开源贡献者计划2022】[napi_tool] Support extends and implements
Merge pull request !107 from wuyou/master
2022-08-22 11:45:44 +00:00
huoxiaodan
23715af296 Modify UT fail test
Signed-off-by: huoxiaodan <huoxiaodan@kaihong.com>
2022-08-22 10:08:32 +08:00
wqzhappy
46eaad0be1 support extends and implements
Signed-off-by: wqzhappy <zhongwenqing@kaihong.com>
2022-08-19 15:10:01 +08:00
zhaojunxia
7429ff5317 feat: support array_Map
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2022-08-16 02:39:47 -07:00
zhaojunxia
b699a16892
!2 【OpenHarmony开源贡献者计划2022】[napi_tool] add optional test case
Merge pull request !2 from zhangzhicheng007/master
2022-08-02 07:43:03 +00:00
zhangzhicheng007
a0f3d159b7 add optional test case
Signed-off-by: zhangzhicheng007 <zhangzhicheng@kaihong.com>
2022-08-02 14:20:31 +08:00
zhangzhicheng007
8a314653de support optional parameter
Signed-off-by: zhangzhicheng007 <zhangzhicheng@kaihong.com>
2022-08-02 14:02:05 +08:00
openharmony_ci
1f2cb96248
!94 【napi工具】支持array<{[key:string],boolean/number}>类型转换
Merge pull request !94 from zhaojunxia/master
2022-07-14 12:08:25 +00:00
zhangzhicheng007
8907c4ce0c fix promise test case
Signed-off-by: zhangzhicheng007 <zhangzhicheng@kaihongdigi.com>
2022-07-14 17:08:11 +08:00
zhaojunxia
9f0c3102da support array map [string, boolean] and [string, number]
Signed-off-by: zhaojunxia <zhaojunxia@kaihongdigi.com>
2022-07-14 01:00:50 -07:00
huoxiaodan
111b2fe709 Optimize unittest autotest
Signed-off-by: huoxiaodan <huoxiaodan@kaihongdigi.com>
2022-07-13 16:41:17 +08:00
openharmony_ci
f8c7e0c5bf
!69 【nap工具】support array map feat
Merge pull request !69 from lian.chen/master
2022-07-12 08:20:20 +00:00
zhangjiawei
a5f78d2876 feat: support array map
Signed-off-by: zhangjiawei <zhangjiawei@kaihongdigi.com>
2022-07-12 00:35:47 -07:00
huoxiaodan
9367339686 add napi_IntelliJ_plugin readme
Signed-off-by: huoxiaodan <huoxiaodan@kaihongdigi.com>
2022-07-01 10:49:43 +08:00
leon
581e01b42a According to the latest code modify readme
Signed-off-by: leon <guocheng@kaihongdigi.com>
2022-06-29 14:37:53 +08:00
Melier
740a7169f9 add test readme
Signed-off-by: Melier <zhangkaiyue@kaihongdigi.com>
2022-06-29 09:59:41 +08:00
zhangdongguang
68dd731eb2 modify unittest result.json
Signed-off-by: zhangdongguang <zhangdongguang@kaihongdigi.com>
2022-06-24 15:59:42 +08:00
liuhaibin
d0c3a70611 Mofify unittest autotest
Signed-off-by: liuhaibin <liuhaibin@kaihongdigi.com>
2022-06-24 14:26:04 +08:00
ransong
216b1f187b modify readme
Signed-off-by: ransong <ransong@kaihongdigi.com>
2022-06-24 10:44:47 +08:00
chenlian
adbb1b9440 feat: support function param interface no name
Signed-off-by: chenlian <chenlian@kaihongdigi.com>
2022-06-21 19:12:24 +08:00
lihong
e753295561 feat: support function param interface no name
Signed-off-by: lihong <lihong@kaihongdigi.com>
2022-06-21 17:27:29 +08:00
zhangchao
beefee472f feat: support function param interface no name
Signed-off-by: zhangchao <zhangchao@kaihongdigi.com>
2022-06-21 17:26:30 +08:00
zhangliangliang
39077f25de fix: interface enum bug
Signed-off-by: zhangliangliang <zhangliangliang@kaihongdigi.com>
2022-06-17 17:57:53 +08:00
liuycag
733a831edb 修复map嵌套类型和interface类型生成错误
Signed-off-by: liuycag <liuycag@digitalchina.com>
2022-06-16 14:55:10 +08:00
liuycag
099417b231 添加map<>类型解析依赖
Signed-off-by: liuycag <liuycag@digitalchina.com>
2022-06-14 11:21:52 +08:00
baojinjing
08953ae167 repare callback enum
Signed-off-by: baojinjing <baojinjing@kaihongdigi.com>
2022-06-10 17:46:06 +08:00
liuycag
8f09e5d3fb 修复入参map测试用例失败,新增map解析类型
fix: #I5ADDH

Signed-off-by: liuycag <liuycag@digitalchina.com>
2022-06-08 23:40:21 +08:00
openharmony_ci
3a391a7350
!34 修复test_map测试用例编译失败
Merge pull request !34 from liuycag/master
2022-06-02 07:39:57 +00:00
liuycag
a542ceab43 修复test_map测试用例编译失败
fix: #I5ADDH

Signed-off-by: liuycag <liuycag@digitalchina.com>
2022-06-02 11:56:03 +08:00
guoyanwen
491e40b30a add debug_entry.js
Signed-off-by: guoyanwen <guoyanwen@kaihongdigi.com>
2022-06-01 14:48:11 +08:00
liuycag
e1a99d74ff feat: add map type
fix: #I51BBW

Signed-off-by: liuycag <liuycag@digitalchina.com>
2022-05-25 15:54:05 +08:00
zhaojunxia
f18f5d8b1a add enum unittest
Signed-off-by: zhaojunxia <zhaojunxia@kaihongdigi.com>
2022-05-24 17:01:46 +08:00
zhaojunxia
34bed859c0 add unittest and repair array return param
Signed-off-by: zhaojunxia <zhaojunxia@kaihongdigi.com>
2022-05-24 14:04:24 +08:00
zhaojunxia
5b6742ed06 modify unittest error
Signed-off-by: zhaojunxia <zhaojunxia@kaihongdigi.com>
2022-05-20 20:01:39 +08:00
zhaojunxia
fd78a65896 add unittest
Signed-off-by: zhaojunxia <zhaojunxia@kaihongdigi.com>
2022-05-20 18:11:53 +08:00
zhaojunxia
0404b5eba6 Parse the parameter enum
Signed-off-by: zhaojunxia <zhaojunxia@kaihongdigi.com>
2022-05-19 15:00:18 +08:00
zhaojunxia
39ca831ab7 add storytest
Signed-off-by: zhaojunxia <zhaojunxia@kaihongdigi.com>
2022-05-17 14:46:30 +08:00
zhaoxudong
7871a97330 modify md
Signed-off-by: zhaoxudong <bayanxing@kaihongdigi.com>
2022-03-15 14:48:31 +08:00
zhaoxudong
5a96739881 modify md
Signed-off-by: zhaoxudong <bayanxing@kaihongdigi.com>
2022-03-15 14:18:20 +08:00
zhaoxudong
6b317899f2 modify md files
Signed-off-by: zhaoxudong <bayanxing@kaihongdigi.com>
2022-03-14 15:47:35 +08:00
zhaoxudong
91bb8f1098 modify md files
Signed-off-by: zhaoxudong <zhaoxudong@kaihongdigi.com>
2022-03-11 14:58:52 +08:00
huoxiaodan
a59faec015 modify unittest codecheck
Signed-off-by: huoxiaodan <huoxiaodan@kaihongdigi.com>
2022-02-28 10:42:24 +08:00
bayanxing
c65ca386f1 unittest modify codecheck
Signed-off-by: bayanxing <bayanxing@kaihongdigi.com>
2022-02-25 16:11:35 +08:00
bayanxing
a47cf5ffe1 modify generate.test.js
Signed-off-by: bayanxing <bayanxing@kaihongdigi.com>
2022-02-24 16:11:05 +08:00
bayanxing
f601a294df add unittest readme
Signed-off-by: bayanxing <bayanxing@kaihongdigi.com>
2022-02-24 15:49:20 +08:00
bayanxing
e60d836b87 add unittest
Signed-off-by: bayanxing <bayanxing@kaihongdigi.com>
2022-02-24 14:19:05 +08:00
bayanxing
225b0edcde add unittest
Signed-off-by: bayanxing <bayanxing@kaihongdigi.com>
2022-02-24 14:06:04 +08:00
bayanxing
0b28db20de add storytest readme
Signed-off-by: bayanxing <bayanxing@kaihongdigi.com>
2022-02-23 18:18:01 +08:00
bayanxing
ed9216d9a2 add storytest test.py
Signed-off-by: bayanxing <bayanxing@kaihongdigi.com>
2022-02-23 14:29:48 +08:00
bayanxing
f976d55bf7 add storytest readme
Signed-off-by: bayanxing <bayanxing@kaihongdigi.com>
2022-02-23 14:23:26 +08:00
bayanxing
d42f71f6b1 add codecheck for sttest
Signed-off-by: bayanxing <bayanxing@kaihongdigi.com>
2022-02-23 13:49:01 +08:00
bayanxing
456fbb03f2 add sttest
Signed-off-by: bayanxing <bayanxing@kaihongdigi.com>
2022-02-23 11:40:31 +08:00
bayanxing
d7fc9b799f add sttest
Signed-off-by: bayanxing <bayanxing@kaihongdigi.com>
2022-02-23 11:37:25 +08:00
bayanxing
05ae1d68a5 add autotest
Signed-off-by: bayanxing <bayanxing@kaihongdigi.com>
2022-02-23 11:32:29 +08:00
bayanxing
5ce24f68c7 commit msg
Signed-off-by: bayanxing <bayanxing@kaihongdigi.com>
2022-02-23 11:01:04 +08:00