Registry / testing / go-check-check

go-check-check

JSON →
library0.0.0-20201128035030-22ab2dfb190cgogounverified

A rich testing extension for Go's testing package providing assertions and test suites.

go get github.com/go-check/check
INSTALL
IMPORT
SIG · GO-CHECK-CHECK
G
go-check-check
testinggov0.0.0-20201128035030-22ab2dfb190c
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.

check
gopkg.in/check.v1

Define a test suite with assertions.

package main import ( "testing" gocheck "gopkg.in/check.v1" ) func Test(t *testing.T) { gocheck.TestingT(t) } type MySuite struct{} var _ = gocheck.Suite(&MySuite{}) func (s *MySuite) TestExample(c *gocheck.C) { c.Assert(42, gocheck.Equals, 42) }
Debug
Known issues
gotchaImport path changed from legacy gopkg.in/check.v1 to github.com/go-check/check; use gopkg.in/check.v1 for compatibility.
fix
Use gopkg.in/check.v1 in import statements.
affects: all
Upgrade
Version history
0.0.0-20201128035030-22ab2dfb190clatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
go-check-check — go get go-check-check · libregistry