Skip to content

Gocovdiff test#15

Draft
vearutop wants to merge 10 commits into
masterfrom
gocovdiff-test
Draft

Gocovdiff test#15
vearutop wants to merge 10 commits into
masterfrom
gocovdiff-test

Conversation

@vearutop
Copy link
Copy Markdown
Member

@vearutop vearutop commented Jun 14, 2022

This PR showcases gocovdiff instrumentation.

@github-actions
Copy link
Copy Markdown

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
Copy Markdown

Go API Changes

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

@github-actions
Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

codecov-commenter commented Jun 14, 2022

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.32%. Comparing base (e176891) to head (cb2828b).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
field.go 50.00% 1 Missing and 1 partial ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            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% <50.00%> (-0.70%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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