Registry / testing / swaggest-assertjson

swaggest-assertjson

JSON →
library1.10.0gogounverified

Package assertjson implements JSON equality assertion for tests.

go get github.com/swaggest/assertjson
INSTALL
IMPORT
SIG · SWAGGEST-ASSERTJSO
S
swaggest-assertjson
testinggov1.10.0
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.

assertjson
github.com/swaggest/assertjson

Asserts JSON equality in tests.

package main import ( "testing" "github.com/swaggest/assertjson" ) func TestJSON(t *testing.T) { assertjson.Equal(t, []byte(`{"a":1}`), []byte(`{"a":1}`)) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
swaggest-assertjson — go get swaggest-assertjson · libregistry