Registry / testing / alecthomas-assert-v2

alecthomas-assert-v2

JSON →
library2.11.0gogounverified

Package assert provides type-safe assertions with clean error messages for testing.

go get github.com/alecthomas/assert/v2
INSTALL
IMPORT
SIG · ALECTHOMAS-ASSERT-
A
alecthomas-assert-v2
testinggov2.11.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.

assert
github.com/alecthomas/assert/v2

Assert equality in a test

package main import ( "testing" "github.com/alecthomas/assert/v2" ) func TestSomething(t *testing.T) { assert.Equal(t, 1, 1) }
Debug
Known issues
breakingVersion 2 has breaking API changes from v1 (e.g., argument order swapped)
fix
Use v2 import path and check documentation for new signatures
affects: >=2.0.0
Upgrade
Version history
2.11.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
48 hits · last 30 days
node
40
OpenAI (training)
1
Resources
alecthomas-assert-v2 — go get alecthomas-assert-v2 · libregistry