Registry / testing / check-v1

check-v1

JSON →
library1.0.0-20201130134442-10cb98267c6cgogounverified

Package check is a rich testing extension for Go's testing package.

go get gopkg.in/check.v1
INSTALL
IMPORT
SIG · CHECK-V1
C
check-v1
testinggov1.0.0-20201130134442-10cb98267c6c
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 using the check framework.

import ( "testing" . "gopkg.in/check.v1" ) func Test(t *testing.T) { TestingT(t) } var _ = Suite(&MySuite{}) type MySuite struct{} func (s *MySuite) TestHello(c *C) { c.Assert("hello", Equals, "hello") }
Debug
Known issues
gotchaThe check package uses dot imports by convention, which can cause namespace pollution.
fix
Use explicit imports or limit dot imports to test files only.
affects: all
Upgrade
Version history
1.0.0-20201130134442-10cb98267c6clatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
OpenAI (training)
1
Resources
check-v1 — go get check-v1 · libregistry