Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 2.8% on proxy.golang.org
Top 0.5% dependent packages on proxy.golang.org
Top 0.7% dependent repos on proxy.golang.org
Top 5.3% forks on proxy.golang.org

proxy.golang.org : github.com/kinbiko/jsonassert

Package jsonassert is a Go test assertion library for verifying that two representations of JSON are semantically equal. Create a new in your test and use this to make assertions against your JSON payloads: E.g. for the JSON you may use an expected JSON of along with the "world" format argument. For example: You may wish to make assertions against the *presence* of a value, but not against its value. For example: will verify that the UUID field is present, but does not check its actual value. You may use "<<PRESENCE>>" against any type of value. The only exception is null, which will result in an assertion failure. If you don't know / care about the order of the elements in an array in your payload, you can ignore the ordering: The above will verify that "foo", "bar", and "baz" are exactly the elements in the payload, but will ignore the order in which they appear.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/kinbiko/jsonassert
Keywords: assertion-library, assertions, go, golang, hacktoberfest, json, json-payload, testing
License: MIT
Latest release: almost 2 years ago
First release: over 5 years ago
Namespace: github.com/kinbiko
Dependent packages: 74
Dependent repositories: 59
Stars: 103 on GitHub
Forks: 17 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 3 days ago

    Loading...
    Readme
    Loading...