Commit Graph

1281 Commits

Author SHA1 Message Date
jroam
bc870226e5
Merge pull request #11 from gogf/master
日常更新
2019-04-16 22:52:03 +08:00
jroam
958e00e231 fmt test code file 2019-04-16 22:14:42 +08:00
jroam
9f5711d41d edit testpackage's name 2019-04-16 22:11:44 +08:00
pibigstar
d12532ccc1 set a definite value for an assertion #66 2019-04-16 15:49:42 +08:00
pibigstar
53e9f05a10 make the details perfect #66 2019-04-16 15:49:42 +08:00
pibigstar
60e7ab95bc increase coverage for crypto #66 2019-04-16 15:49:42 +08:00
pibigstar
ae552e2b46 increase coverage for crypto #66 2019-04-16 15:49:42 +08:00
pibigstar
145b52f343 increase coverage for crypto #66 2019-04-16 15:49:42 +08:00
pibigstar
57b8fac0d5 add the crypto test 2019-04-16 15:49:42 +08:00
Jay
16a4a5ba46 Gmap测试修改 2019-04-16 14:28:25 +08:00
yybjroam@qq.com
37b7c82c64 Merge branch 'master' into test_gfile 2019-04-15 23:30:21 +08:00
yybjroam@qq.com
84ed3d5767 add move and rename testfun 2019-04-15 23:14:48 +08:00
John
2f7d4cd80d fix issue in Add function for gtype.Float32/Float64 2019-04-15 22:55:12 +08:00
yybjroam@qq.com
03ccbf3613 edit TestStat fun 2019-04-15 22:52:19 +08:00
yybjroam@qq.com
1868465319 edit TestTruncate fun 2019-04-15 22:47:09 +08:00
jroam
2015c847e8 fmt test file 2019-04-15 18:14:38 +08:00
jroam
11191c746a edit test 2019-04-15 15:34:35 +08:00
jroam
abedd3c5bf edit test 2019-04-15 15:30:44 +08:00
jroam
501ba5135b edit test 2019-04-15 15:27:49 +08:00
jroam
a76c98c348 暂时去掉search测试 2019-04-15 14:01:09 +08:00
jroam
ff9bbf0a49 edit test 2019-04-15 11:41:05 +08:00
jroam
66e24c8d40 Merge branch 'master' into test_gfile 2019-04-15 11:26:11 +08:00
jroam
21f2f16889 go test 2019-04-14 23:21:03 +08:00
jroam
f6fa7c422d 测试小调整 2019-04-14 22:41:11 +08:00
jroam
6903b84bb6 调整测试文件生成目录 2019-04-13 23:00:57 +08:00
jroam
0978b8fb4f 初步完成测试代码重构 2019-04-13 18:27:01 +08:00
yybjroam@qq.com
d014583e88 重构测试代码中 2019-04-13 13:14:30 +08:00
jroam
a747f51b9d 重构测试代码 2019-04-12 18:15:31 +08:00
wenzi
8300885ab6
Merge pull request #5 from gogf/master
update gtest
2019-04-12 17:59:02 +08:00
Jay
b489eed4ef 新增测试方法 2019-04-12 10:59:05 +08:00
jroam
0b57771d76 用fmt格式化代码 2019-04-12 09:47:55 +08:00
John
8a32a8271c fix issue in empty router group error of ghttp.Server 2019-04-12 00:19:15 +08:00
John Guo
e464d14842
Merge pull request #85 from qq976739120/gmap-test
Gmap 测试添加
2019-04-11 21:59:00 +08:00
Jay
905f46359a Gmap string-string 类型测试提交 2019-04-11 17:50:26 +08:00
Jay
8e7bf1f908 bug 修复 2019-04-11 17:46:19 +08:00
Jay
3a1524ae6d Gmap 初测完成 2019-04-11 17:33:52 +08:00
jroam
a60578c82c edit ci 2019-04-11 16:23:29 +08:00
jroam
74558a500c edit c1 2019-04-11 16:17:44 +08:00
jroam
d963d8c8c1 testci 2019-04-11 16:13:56 +08:00
jroam
641f939e3d edit test 2019-04-11 15:57:48 +08:00
jroam
af77504eaf 修改测试 2019-04-11 15:49:00 +08:00
jroam
cd719f134d 测试率达到82.9% 2019-04-11 09:47:51 +08:00
John
0ffe17ee3d revert SearchArray/InArray functions for gstr 2019-04-11 09:26:52 +08:00
John
4ac647a215 gcmd updates 2019-04-11 09:05:27 +08:00
John
872536c035 Merge branch 'master' of https://github.com/gogf/gf 2019-04-10 23:09:59 +08:00
John
c7a6a6fff0 improve grand.Intn; README updates 2019-04-10 23:09:38 +08:00
yybjroam@qq.com
2534655bc8 测试覆盖率达到76.3% 2019-04-10 22:16:16 +08:00
John Guo
0cb82d70fd
Merge pull request #96 from aloncn/master
update unit test for gring
2019-04-10 21:42:25 +08:00
John
9ec15ad2ca fix issue in repeated rand value of grand.Intn 2019-04-10 18:33:12 +08:00
jroam
a9b7d56d0b 测试覆盖率达到63.1% 2019-04-10 17:54:28 +08:00
jroam
e9ca1eb538 完成第一遍功能测试 2019-04-10 16:45:33 +08:00
jroam
0532800895 添加测试代码 2019-04-10 16:22:29 +08:00
aloncn
ad50ca6e60 update unit test for gring 2019-04-10 14:26:21 +08:00
jroam
c1ad999c25 添加测试 2019-04-10 13:45:42 +08:00
jroam
4accd1264d 添加内容测试 2019-04-10 13:39:36 +08:00
jroam
4bf9a7950b Merge branch 'master' into test_gfile 2019-04-10 11:28:57 +08:00
aloncn
8285c31bf1 Update unit test for gring 2019-04-10 10:44:40 +08:00
aloncn
230be66fa9 update unit test for gring 2019-04-10 10:13:56 +08:00
aloncn
2c53f934c9 Merge branch 'master' of https://github.com/gogf/gf 2019-04-10 09:50:29 +08:00
John
08785cb272 update unit test cases of gjson 2019-04-10 08:54:49 +08:00
aloncn
bd0207c938 update unit test for gring 2019-04-10 01:16:45 +08:00
John
6fad737617 update unit test cases of gjson/gparser 2019-04-10 01:00:51 +08:00
aloncn
922eaf4d42 Update unit test for gring 2019-04-10 00:37:06 +08:00
farmer chen
4b5153950f Add unit test for gring 2019-04-10 00:37:06 +08:00
yybjroam@qq.com
6cc0017826 测试空的断言。 2019-04-09 23:25:20 +08:00
John
85c2ed1bf2 improve nil checks for gtest.Assert* 2019-04-09 23:12:22 +08:00
yybjroam@qq.com
aca1df634d 添加测试文件内容相关函数。 2019-04-09 23:11:04 +08:00
wenzi1
053a3c1a53 add unit test 2019-04-09 19:12:48 +08:00
wenzi
468c315087
Merge pull request #4 from gogf/master
update 1.6
2019-04-09 17:36:40 +08:00
wenzi1
b3d5fc149e add unit test 2019-04-09 17:27:11 +08:00
Jay
277b7a4536 测试修改 2019-04-09 15:06:12 +08:00
wenzi1
43886511b9 add unit test 2019-04-09 12:28:21 +08:00
yybjroam@qq.com
054ef87886 继续添加文件测试. 2019-04-08 23:13:28 +08:00
Jay
39c65d9e9a 测试添加 2019-04-08 17:49:15 +08:00
Jay
b97bbbfa3d 测试添加 2019-04-08 17:32:07 +08:00
Jay
ace6ba8096 Gmap 测试添加 2019-04-08 17:02:57 +08:00
yybjroam@qq.com
a2b87d84e9 添加gfile测试代码,10% 2019-04-07 22:46:14 +08:00
John
1fc85d49bd gtime updates; README updates 2019-04-07 21:49:24 +08:00
John Guo
a5cfb4e638
Merge pull request #82 from hailaz/master
Add gtime unit test
2019-04-07 21:27:29 +08:00
John Guo
38754bf062
Merge pull request #78 from youyixiao/youyixiao_gogf
gregex_unit_test
2019-04-07 21:23:03 +08:00
hailaz
f1818ed2ff 补充gtime_format的覆盖测试。 2019-04-06 23:53:06 +08:00
hailaz
352ad17715 避免pr时造成gtime文件的更改。 2019-04-06 22:56:47 +08:00
hailaz
e50b8d9632 移除gtime unit test中注释掉的函数。 2019-04-06 22:50:37 +08:00
hailaz
2107061a46 Add gtime unit test 2019-04-06 22:48:47 +08:00
John
61f57b4895 update comments of gstr 2019-04-06 21:31:01 +08:00
hailaz
d34273abff 同步master 2019-04-05 23:53:43 +08:00
hailaz
0aff0f0362 同步master 2019-04-05 23:49:20 +08:00
John
c56c77d3a1 fix issue in G&j char format 2019-04-05 23:13:47 +08:00
John
dc82ce395a comment updates for gcfg 2019-04-05 00:23:59 +08:00
wenzi1
fd63a2209b 增加单元测试 2019-04-04 23:31:17 +08:00
John
2a29483456 comment fix 2019-04-04 23:24:27 +08:00
John
4f10562980 remove limit for gdb.Model.One 2019-04-04 23:22:09 +08:00
wenzi
a26ec37f59
Merge pull request #3 from gogf/master
更新
2019-04-04 23:17:09 +08:00
wenzi1
779ad93bcb 参数为nil时的特殊处理 2019-04-04 23:02:00 +08:00
wenzi1
1ec0219473 add gbinary unit tests 2019-04-04 23:00:21 +08:00
一墨染尽青衣颜
6863928b06 !18 限制下查询单条记录查询条数
Merge pull request !18 from 一墨染尽青衣颜/master
2019-04-04 22:55:13 +08:00
John
aa4dca11f0 fix issue in gtime; update comment for g/gtest 2019-04-04 22:52:56 +08:00
hailaz
dc6ab820ce 修复解析日期函数(parseDateStr)对"02.jan.2006"格式日期解析异常的问题。
更正函数(isNumeric)的注释。
2019-04-04 17:57:17 +08:00
肖有益
be0fa4d60b gregex_unit_test 2019-04-04 17:45:04 +08:00
肖有益
a86d2272af gregex_unit_test 2019-04-04 16:15:50 +08:00
John
08550d413e update unit test cases for gcfg 2019-04-04 09:18:43 +08:00
John
b89294561b add gmap.SetIfNotExistFunc/SetIfNotExistFuncLock for gmap; update comment of gmap; update instance feature of gcfg 2019-04-03 23:39:31 +08:00
John
630d8fdb43 add Instance function for gcfg 2019-04-03 09:59:15 +08:00
John
0e0f297a3f add consurrent safety parameter for gjson.Load/LoadContent; fulfil data type auto-check logics for gjson.LoadConetnt; update comment of gjson/gparser 2019-04-02 23:33:27 +08:00
John Guo
fd2c0f2b24
Merge pull request #59 from wenzi1/master
修复gxml字符集转换的并发安全问题
2019-04-02 17:43:19 +08:00
John
ecc6e3888d up 2019-04-02 17:10:21 +08:00
John
47c073aaf3 add Clear function for gcfg; mark Reload function of gcfg as deprecated; update unit test for gins 2019-04-02 16:08:46 +08:00
John
07476a4349 add instance management feature for gdb/gredis; add customized configuration content management feature for gcfg; update gjson for data content type check 2019-04-02 14:37:46 +08:00
wenzi1
817148f3a1 增加单元测试 2019-04-01 18:32:37 +08:00
wenzi1
bd4271cd8c 增加gxml的单元测试 2019-03-31 23:36:11 +08:00
John
a3886c2179 fix issue in RemoteAddr of gudp.Conn 2019-03-31 20:58:31 +08:00
John
f258b5bf1c change logging level from error to debug in route regitsry for struct for ghttp package; handle possible overrange usage of r.URL.Path in ghttp.Server 2019-03-31 20:52:30 +08:00
wenzi1
a05361011f 修复并发安全问题,改为如果非UTF8字符集则先做字符集转换 2019-03-30 23:53:42 +08:00
wenzi1
6b34a77251 修复并发安全问题,改为如果非UTF8字符集则先做字符集转换 2019-03-30 23:39:07 +08:00
John
22fa7a37f3 add UseNumber support for gjson; add more unit test cases for gjson 2019-03-28 17:51:05 +08:00
John
6a58bfc574 add stdout printing support for ghttp.Server logging 2019-03-28 09:34:16 +08:00
John
64124c60fc add fatal error when no router set or statis feature enabled for ghttp.Server 2019-03-27 16:23:35 +08:00
John
9a0066de62 add file/folder search support for gcfg/gview in order of envpath/pwdpath/binpath/mainpath; add gfile.Search function 2019-03-27 11:48:53 +08:00
John
22c7c7403b fix issue in basic http auth check for server side 2019-03-27 09:16:23 +08:00
John
83db8e4b15 add wss example for websocket 2019-03-22 17:26:39 +08:00
John
1325a145d8 fix issue in config auto reload of gcfg 2019-03-22 15:08:43 +08:00
John
9bc49c0b29 add logging for error in ghttp.Request 2019-03-22 14:31:02 +08:00
John
8e84e5b0f3 update comment of gredis 2019-03-22 11:22:03 +08:00
John
51bb7a9854 ignore private attribute of struct in gconv/gvalid 2019-03-22 10:12:15 +08:00
John
62580b5719 add examples for gredis 2019-03-21 23:51:57 +08:00
John
15cfd5ce5c add g.Export 2019-03-21 18:21:53 +08:00
John
11c89c4090 fix issue in GetOrSetFuncLock of gmap/gcache; add gutil.IsEmpty/Export functions 2019-03-21 18:20:20 +08:00
John
32f575eddd update unit test of gins 2019-03-21 10:36:24 +08:00
John
fbb4cb3b1c add more unit test cases for gredis 2019-03-21 10:04:53 +08:00
John
c9d2d5e8ab add configuration support for maxIdle/maxActive/idleTimeout/maxConnLifetime of gredis; update gjson.Append/Len functions; add more unit test cases for gredis/gins/gstr/gjson 2019-03-21 00:14:23 +08:00
John
80e0eae6b0 add TLSConfig support for ghttp.Server 2019-03-19 17:48:37 +08:00
John
4e3d735b90 add logging for gcron 2019-03-19 13:58:18 +08:00
John
60e5a7da28 add more unit test cases for grand/gstr 2019-03-18 23:52:25 +08:00
John
5a82d695c1 mv greuseport to a new repo 2019-03-18 13:56:16 +08:00
John
72eeadd9aa Merge branch 'master' into develop 2019-03-17 22:31:15 +08:00
John
0af55794f6 add more unit test cases for gdb 2019-03-17 22:26:41 +08:00
John
25a6c53533 add unit test cases for gfsnotify 2019-03-15 14:54:01 +08:00
John
9f9172c775 update unit test cases of package gconv 2019-03-15 09:05:56 +08:00
John
320e0db417 fix int-overflow issue in gconv.String when converting int64 to string; add more unit test cases for package gconv 2019-03-15 00:22:39 +08:00
John
cb8362d447 update unit test cases of package gins 2019-03-14 23:28:56 +08:00
John
45a83fc53c unit test cases update for package gins 2019-03-14 00:23:46 +08:00
John
3411bd1c1d merge master 2019-03-13 22:41:00 +08:00
John
6ab0a77364 add more defaulr searching paths for g.Config() 2019-03-13 22:12:59 +08:00
John
281bae4116 unit test cases update for package gins 2019-03-13 09:11:50 +08:00
John
218c692fe0 update unit test cases 2019-03-12 23:56:09 +08:00
John
fa69b581e1 update unit test cases 2019-03-12 23:50:30 +08:00
John
bd0baceeca update unit test cases 2019-03-12 23:47:27 +08:00
John
e71c837472 update unit test cases 2019-03-12 23:45:44 +08:00
John
782aaabd07 add more unit test cases for gins; update text/template for gview 2019-03-12 23:26:10 +08:00
John
8ae9276732 add disable cache feature option for package gspath 2019-03-12 00:24:31 +08:00
John
79a3aa5916 add more unit test cases for package gvalid 2019-03-11 22:58:21 +08:00
John
6171c621a7 fix issue in missing customed error messages in package gvalid 2019-03-11 22:33:20 +08:00
John
127fb67185 add session id check in session object initialzing 2019-03-11 16:33:51 +08:00
John
5db039bbce gdb.Model updates, rename Alterable function to Safe, change gdb.Model alterable in default, update Where function to support more cases when using map as its param, add more unit test cases for gdb.Model 2019-03-11 16:14:55 +08:00
John
8a3365d18e ghttp comment updates 2019-03-10 00:39:34 +08:00
John
2ae5b1a4f8 add more unit test cases for ghttp.Server 2019-03-10 00:35:03 +08:00
John
b56679a97c revert g.Map to map[string]interface{}, add g.MapAnyAny 2019-03-09 10:17:21 +08:00
John
991f7c4958 ghttp.Response updates 2019-03-08 19:03:22 +08:00
John
770619c39e update unit test cases og gcron 2019-03-08 18:27:11 +08:00
John
4ad5450b80 gtest updates; remove one unit test case of gconv.Struct 2019-03-08 18:18:29 +08:00
John
49ce7fe885 fix data race issue of gqueue 2019-03-08 17:54:50 +08:00
John
e66f63262b add more unit test cases for ghttp.Server 2019-03-08 17:31:30 +08:00
John
94bd5da68a add map key operator support in Where function for gdb 2019-03-08 11:12:52 +08:00
John
5c638c630a add select in support for slice type of arguments in Where function of gdb 2019-03-08 10:33:36 +08:00
John
a6ec9d7a1c update gdb.Model.Where, orverwrite args if multiple calls Where function 2019-03-08 10:18:38 +08:00
John
22a7ef43ce Merge branch 'master' into develop 2019-03-08 00:21:52 +08:00
John
ebf56a86ab add Alterable function for gdb.Model 2019-03-07 23:53:56 +08:00
John
2ba59e8943 fix issue in gtime convert in package gconv; add Structs/Scan functions for gdb.Model; add GetStructs/GetScan functions for gdb.Base and gdb.TX 2019-03-07 23:36:45 +08:00
John
83be1de04c remove error returns from router registry functions of WebServer; add more unit test cases for WebServer 2019-03-06 15:21:00 +08:00
John
c8251ed82f g.Map updates 2019-03-06 10:38:50 +08:00
John
2335ea0c4d merge master 2019-03-05 21:07:54 +08:00
John
5d874e9063 add example code for gconv.Map; comment updates of gdb 2019-03-05 17:52:34 +08:00
John
f2c080d25f update ghttp.Response 2019-03-05 17:16:21 +08:00
John
975da97b4a fix issue in empty check for nil attribute of struct in package 'empty';add set-cookie support for 302 status in ghttp.Server 2019-03-05 17:06:37 +08:00
John
37617589a6 add more unit test cases for ghttp.Server 2019-03-04 23:51:44 +08:00
John
28abf0c175 add ReplaceI/ReplaceIByArray/ReplaceIByMap case-insensetive replacing functions for gstr 2019-03-04 23:35:06 +08:00
John
13749feab4 add json features '-' and 'omitempty' for gconv.Map, like package 'json' from stdlib; add internal package 'empty', to check empty variable 2019-03-04 22:59:29 +08:00
John
c3b9b8d5ae gconv updates 2019-03-03 00:53:35 +08:00
John
1ad076c522 travis updates 2019-03-03 00:31:16 +08:00
John
55a5532c2e gdb updates 2019-03-03 00:14:20 +08:00
John
f92c1fc527 update CORS feature of ghttp.Response; add more unit cases for ghttp.Server 2019-03-01 23:45:55 +08:00
John
66287c2d0e update the admin feature and unit test cases of ghttp 2019-02-28 23:57:20 +08:00
John
5d37626981 hot fix issue in router registry 2019-02-28 14:07:00 +08:00
John
fa256aec9f add example for layout using template engine; fix issue with config error output in gview when no config used 2019-02-27 22:53:39 +08:00
John
86834c5a15 version and comment updates 2019-02-27 22:17:09 +08:00
John
c2046157d6 add ghttp.Request.GetRawString function 2019-02-27 21:17:56 +08:00
John
cdb2cc89c0 remove password for unit test of gdb 2019-02-27 12:51:48 +08:00
John
4964c09a77 add more unit test cases for gdb 2019-02-27 12:38:12 +08:00
John
ef34b2c9ce gdb updates, add batch operation support for Insert/Save/Replace, change list param type from List to interface{} for Batch* functions 2019-02-27 09:38:10 +08:00
John
9afe242293 Merge branch 'master' into qiangg_gdb_map 2019-02-27 08:52:50 +08:00
John
fdea242b50 Merge branch 'master' into develop 2019-02-26 22:23:24 +08:00
John
7058e4f2c4 fix issue of router group in auto-adding 'index' router for controller and object 2019-02-26 22:21:57 +08:00
John
704a5dbd73 fix issue of "memory leaks" in gfpool 2019-02-26 17:52:50 +08:00
John
fbd4ce8c2e fulfil unit cases of ghttp.Cookie/Session 2019-02-26 17:17:11 +08:00
John
cb3ce71cdc fix issue in ghttp.Session 2019-02-26 14:33:01 +08:00
John
7f44f2f5e4 gdb updates 2019-02-26 14:23:29 +08:00
John
66efbe63f0 add struct support for *Insert/*Save/*Replace/*Update/Where/Data functions 2019-02-26 01:19:01 +08:00
John
49a1308875 ghttp.Session updates 2019-02-25 23:08:26 +08:00
John
4332580c01 disable build-in session variable in template parsing, when it's not necessary 2019-02-25 15:20:57 +08:00
John
0f854e46d8 refact Merge function for garray; add more frequently-used type alias for gf 2019-02-22 09:08:46 +08:00