-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zaptest/observer: Support filtering by message or field (#386)
* zaptest/observer: Support filtering by message or field Add `Filter*` functions to filter a set of ObservedLogs and return a new set of ObservedLogs. This allows chaining of multiple filters such as `sink.FilterMessage(..).FilterField(..)` for easier use in tests. * Handle duplicate fields
- Loading branch information
1 parent
16dc29a
commit 7cb1af2
Showing
2 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters