Registry / testing / fgrosse-zaptest

fgrosse-zaptest

JSON →
library1.3.1gogounverified

Provides test helpers for using zap.Logger in unit tests, suppressing output unless tests fail or verbose mode is enabled.

go get github.com/fgrosse/zaptest
INSTALL
IMPORT
SIG · FGROSSE-ZAPTEST
F
fgrosse-zaptest
testinggov1.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

zaptest
github.com/fgrosse/zaptest

Creates a zap.Logger for testing that only outputs on failure or verbose mode.

package main import ( "testing" "github.com/fgrosse/zaptest" "go.uber.org/zap" ) func TestSomething(t *testing.T) { logger := zaptest.Logger(t) logger.Info("test message") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
47 hits · last 30 days
node
38
OpenAI (training)
1
Resources
fgrosse-zaptest — go get fgrosse-zaptest · libregistry