Directories ¶
Path | Synopsis |
---|---|
Package assert provides the assersion feature for *testing.T You can use assert functions by `assert.New(t)` import ( "testing" "github.com/speedland/go/x/xtesting/assert" ) func TestSomething(t *testing.T){ assert := assert.New(t) assert.OK(true) assert.EqInt(1, 1) assert.EqStr("Expects", "Got", "Somthing wrong!") }
|
Package assert provides the assersion feature for *testing.T You can use assert functions by `assert.New(t)` import ( "testing" "github.com/speedland/go/x/xtesting/assert" ) func TestSomething(t *testing.T){ assert := assert.New(t) assert.OK(true) assert.EqInt(1, 1) assert.EqStr("Expects", "Got", "Somthing wrong!") } |
Click to show internal directories.
Click to hide internal directories.