Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the code coverage of the gudp module #1907

Merged
merged 86 commits into from
Jun 13, 2022

Conversation

huangqian1985
Copy link
Member

issue: #1901

1.NewConn 2.NewConnTLS 3.NewConnKeyCrt
1. ExampleConn_SendWithTimeout
2. ExampleConn_RecvLine
3. ExampleConn_RecvTill
1. ExampleConn_SendRecv
2. ExampleConn_SendRecvWithTimeout
3. ExampleConn_SetDeadline
4. ExampleConn_SetReceiveBufferWait
1. Test_Package_Option_HeadSize4
2. Test_Package_Option_Error
1. ExampleGetFreePorts
2. ExampleSend
3. ExampleSendRecv
4. ExampleSendWithTimeout
5. ExampleSendRecvWithTimeout
6. ExampleMustGetFreePort
1. ExampleSendPkg
2. ExampleSendRecvPkg
3. ExampleSendPkgWithTimeout
4. ExampleSendRecvPkgWithTimeout
1. Test_Pool_Send
2. Test_Pool_Recv
3. Test_Pool_RecvLine
4. Test_Pool_RecvTill
5. Test_Pool_RecvWithTimeout
6. Test_Pool_SendWithTimeout
7. Test_Pool_SendRecvWithTimeout
1. ExampleGetServer
2. ExampleSetAddress
3. ExampleSetHandler
4. ExampleRun_NilHandle
1.TestSendRecvPkg
2.TestSendPkgWithTimeout
3.TestSendRecvPkgWithTimeout
add unit funciton
1.TestNewServer
2.TestGetServer
3.TestServer_SetAddress
4.TestServer_SetHandler
5.TestServer_Run
1.TestLoadKeyCrt
# Conflicts:
#	net/gclient/gclient_z_example_test.go
# Conflicts:
#	net/gclient/gclient_z_example_test.go
1.ExampleClient_Put
2.ExampleClient_Delete
3.ExampleClient_Head
4.ExampleClient_Patch
5.ExampleClient_Connect
6.ExampleClient_Options
7.ExampleClient_Trace
1.TestClient_DoRequest
1.ExampleClient_PutVar
2.ExampleClient_DeleteVar
3.ExampleClient_HeadVar
4.ExampleClient_PatchVar
5.ExampleClient_ConnectVar
6.ExampleClient_OptionsVar
7.ExampleClient_TraceVar
1.Test_NewConn
2.Test_GetFreePorts
1.Test_Server
@codecov-commenter
Copy link

codecov-commenter commented Jun 13, 2022

Codecov Report

Merging #1907 (1ce89ee) into master (4f37aba) will increase coverage by 0.16%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1907      +/-   ##
==========================================
+ Coverage   74.45%   74.61%   +0.16%     
==========================================
  Files         510      510              
  Lines       46176    46176              
==========================================
+ Hits        34379    34454      +75     
+ Misses       9726     9646      -80     
- Partials     2071     2076       +5     
Flag Coverage Δ
go-1.15-386 74.51% <ø> (+0.16%) ⬆️
go-1.15-amd64 74.50% <ø> (+0.12%) ⬆️
go-1.16-386 74.53% <ø> (+0.15%) ⬆️
go-1.16-amd64 74.49% <ø> (+0.14%) ⬆️
go-1.17-386 74.56% <ø> (+0.16%) ⬆️
go-1.17-amd64 74.56% <ø> (+0.14%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
os/gfsnotify/gfsnotify_filefunc.go 74.02% <0.00%> (-3.90%) ⬇️
os/gcron/gcron_schedule.go 67.52% <0.00%> (+0.42%) ⬆️
net/gudp/gudp_conn.go 61.90% <0.00%> (+25.39%) ⬆️
net/gudp/gudp_func.go 57.29% <0.00%> (+28.12%) ⬆️
net/gudp/gudp_server.go 68.75% <0.00%> (+37.50%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4f37aba...1ce89ee. Read the comment docs.

@gqcn gqcn merged commit b62b2f3 into gogf:master Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants