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

Gocovdiff test #15

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft

Gocovdiff test #15

wants to merge 10 commits into from

Conversation

vearutop
Copy link
Member

@vearutop vearutop commented Jun 14, 2022

This PR showcases gocovdiff instrumentation.

@github-actions
Copy link

github-actions bot commented Jun 14, 2022

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 8 689 (+8) 456 (+6) 86 147 (+2) 64 (+4) 15.9K (+114B)
Go (test) 8 554 (+5) 405 (+4) 29 120 (+1) 8 14.3K (+122B)
YAML 6 461 (+32) 383 (+18) 36 42 (+14) 0 15.5K (+1.4K)

@github-actions
Copy link

Go API Changes

# summary
Inferred base version: v1.1.3
Suggested version: v1.1.4

@github-actions
Copy link

github-actions bot commented Jun 14, 2022

Unit Test Coverage

total: (statements) 94.2%
changed lines: (statements) 75.00% (coverage is less than 90.00%, consider testing the changes more thoroughly)

Coverage of changed lines
File Function Coverage
Total 75.00%
field.go 75.00%
field.go:24 MarshalJSON 100.00%
field.go:15 String 0.00%
Coverage diff with base branch
File Function Base Coverage Current Coverage
Total 94.6% 94.2% (-0.40%)
github.com/bool64/ctxd/field.go String 100.0% 66.7% (-33.30%)

@github-actions
Copy link

github-actions bot commented Jun 14, 2022

Benchmark Result

Benchmark diff with base branch
name                     old time/op    new time/op    delta
SetFields-2                 417ns ± 1%     416ns ± 0%   ~     (p=0.841 n=5+5)
StructuredError_Error-2     624ns ± 0%     626ns ± 0%   ~     (p=0.056 n=5+5)
Fmt_Errorf-2                325ns ± 0%     326ns ± 0%   ~     (p=0.413 n=5+4)
WrapError-2                 811ns ± 1%     806ns ± 1%   ~     (p=0.095 n=5+5)

name                     old alloc/op   new alloc/op   delta
SetFields-2                  224B ± 0%      224B ± 0%   ~     (all equal)
StructuredError_Error-2      224B ± 0%      224B ± 0%   ~     (all equal)
Fmt_Errorf-2                96.0B ± 0%     96.0B ± 0%   ~     (all equal)
WrapError-2                  256B ± 0%      256B ± 0%   ~     (all equal)

name                     old allocs/op  new allocs/op  delta
SetFields-2                  5.00 ± 0%      5.00 ± 0%   ~     (all equal)
StructuredError_Error-2      6.00 ± 0%      6.00 ± 0%   ~     (all equal)
Fmt_Errorf-2                 2.00 ± 0%      2.00 ± 0%   ~     (all equal)
WrapError-2                  5.00 ± 0%      5.00 ± 0%   ~     (all equal)
Benchmark result
name                     time/op
SetFields-2              416ns ± 0%
StructuredError_Error-2  626ns ± 0%
Fmt_Errorf-2             326ns ± 0%
WrapError-2              806ns ± 1%

name                     alloc/op
SetFields-2               224B ± 0%
StructuredError_Error-2   224B ± 0%
Fmt_Errorf-2             96.0B ± 0%
WrapError-2               256B ± 0%

name                     allocs/op
SetFields-2               5.00 ± 0%
StructuredError_Error-2   6.00 ± 0%
Fmt_Errorf-2              2.00 ± 0%
WrapError-2               5.00 ± 0%

@codecov-commenter
Copy link

codecov-commenter commented Jun 14, 2022

Codecov Report

Merging #15 (cb2828b) into master (e176891) will decrease coverage by 0.69%.
The diff coverage is 77.77%.

@@            Coverage Diff             @@
##           master      #15      +/-   ##
==========================================
- Coverage   92.02%   91.32%   -0.70%     
==========================================
  Files           6        6              
  Lines         188      196       +8     
==========================================
+ Hits          173      179       +6     
- Misses          9       10       +1     
- Partials        6        7       +1     
Flag Coverage Δ
unittests 91.32% <77.77%> (-0.70%) ⬇️

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

Impacted Files Coverage Δ
field.go 66.66% <50.00%> (-33.34%) ⬇️
error.go 94.94% <100.00%> (+0.21%) ⬆️

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 f20052c...cb2828b. Read the comment docs.

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.

2 participants