Skip to content

Add FilterFieldKey to zaptest/observer#928

Merged
r-hang merged 1 commit into
uber-go:masterfrom
r-hang:rhang/filter-field-key
Mar 23, 2021
Merged

Add FilterFieldKey to zaptest/observer#928
r-hang merged 1 commit into
uber-go:masterfrom
r-hang:rhang/filter-field-key

Conversation

@r-hang
Copy link
Copy Markdown
Contributor

@r-hang r-hang commented Mar 16, 2021

Adds functionality to filter zap.Field by key. This makes testing for
field existence regardless of value more convenient.

resolves #816

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 16, 2021

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 16, 2021

Codecov Report

Merging #928 (d5cc7f5) into master (89e3820) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #928   +/-   ##
=======================================
  Coverage   98.26%   98.27%           
=======================================
  Files          44       44           
  Lines        1965     1969    +4     
=======================================
+ Hits         1931     1935    +4     
  Misses         27       27           
  Partials        7        7           
Impacted Files Coverage Δ
zaptest/observer/observer.go 100.00% <100.00%> (ø)

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 89e3820...d5cc7f5. Read the comment docs.

Adds functionality to filter zap.Field by key. This makes testing for
field existence regardless of value more convenient.

resolves uber-go#816
@r-hang r-hang force-pushed the rhang/filter-field-key branch from fab73a8 to d5cc7f5 Compare March 22, 2021 20:09
@r-hang r-hang merged commit bfa147a into uber-go:master Mar 23, 2021
@r-hang r-hang deleted the rhang/filter-field-key branch March 23, 2021 16:42
abhinav pushed a commit that referenced this pull request May 25, 2021
Adds functionality to filter zap.Field by key. This makes testing for
field existence regardless of value more convenient.

resolves #816
RenovZ pushed a commit to RenovZ/zap that referenced this pull request Mar 25, 2022
Adds functionality to filter zap.Field by key. This makes testing for
field existence regardless of value more convenient.

resolves uber-go#816
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Add FilterFieldKey method to observer in zaptest

5 participants