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

Top 5.4% on proxy.golang.org

proxy.golang.org : github.com/gravitton/assert

Package assert provides a simple and lightweight testing assertion library for Go. This package offers a collection of assertion functions that can be used with any testing framework that implements the Testing interface (such as Go's standard testing.T). The assertions are designed to be intuitive and provide clear error messages when tests fail. The assert package works with any type that implements the Testing interface: • True/False: Assert boolean values • Equal/NotEqual: Assert value equality using reflect.DeepEqual • Same/NotSame: Assert pointer identity (same memory address) • Fail/Failf: Manually fail tests with custom messages All assertion functions provide detailed error messages when assertions fail, including actual and expected values formatted with Go's %#v verb for maximum clarity. All assertion functions automatically call t.helper() if the testing type implements the helper interface, ensuring that test failures point to the correct line in your test code rather than inside the assertion library. All assertion functions return a boolean indicating success (true) or failure (false), allowing for conditional test logic if needed.

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/gravitton/assert
Keywords: assert , assertion , go , golang , unittest
License: MIT
Latest release: 3 months ago
First release: 6 months ago
Namespace: github.com/gravitton
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 28 days ago

v1.0.0
Published: 3 months ago
Registry - Documentation - Download
v0.5.0
Published: 5 months ago
Registry - Documentation - Download
v0.4.0
Published: 5 months ago
Registry - Documentation - Download
v0.3.0
Published: 6 months ago
Registry - Documentation - Download
v0.2.0
Published: 6 months ago
Registry - Documentation - Download
v0.1.0
Published: 6 months ago
Registry - Documentation - Download
v0.0.1
Published: 6 months ago
Registry - Documentation - Download