Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Set nil pointer to string nil when converting key values. #230

Merged
merged 2 commits into from Jan 24, 2020

Conversation

cyriltovena
Copy link
Contributor

This causes a panic that will be recovered by the fmt package.
Althought on darwin this makes any projects using open tracing impossible to debug with dlv

see cortexproject/cortex#1712

Signed-off-by: Cyril Tovena cyril.tovena@gmail.com

This causes a panic that will be recovered by the fmt package.
Altought on darwin this makes any project using open tracing impossible to debug.

see cortexproject/cortex#1712

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
@yurishkuro
Copy link
Member

please add a test

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
@cyriltovena
Copy link
Contributor Author

cyriltovena commented Jan 23, 2020

This function wasn't covered by any tests, unless I'm mistaken, anyways I added a test to cover it entirely.

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@cdf3382). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #230   +/-   ##
=========================================
  Coverage          ?   68.71%           
=========================================
  Files             ?       15           
  Lines             ?      847           
  Branches          ?        0           
=========================================
  Hits              ?      582           
  Misses            ?      225           
  Partials          ?       40
Impacted Files Coverage Δ
log/util.go 100% <100%> (ø)

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 cdf3382...66f56a2. Read the comment docs.

"github.com/stretchr/testify/assert"
)

var nilInterface io.Reader
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be scoped inside the test function

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure ! Will do

@yurishkuro yurishkuro merged commit 2876d20 into opentracing:master Jan 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants