Documentation ¶
Overview ¶
Package xtest adds support for assertions in multiple goroutines to Goconvey.
Parallel goconvey blocks cannot contain other goconvey blocks.
Example:
func TestParallel(t *testing.T) { Convey("Test parallel goroutines", t, Parallel(func(sc *SC) { x := 1 sc.SoMsg("x", x, ShouldEqual, 1) }, func(sc *SC) { y := 1 sc.SoMsg("y", y, ShouldEqual, 1) })) }
Note that inside parallel blocks, Convey methods should be explicitly invoked on the local convey object (e.g., sc).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package loopback defines a net.PacketConn implementation where sent messages are echoed back on the same connection.
|
Package loopback defines a net.PacketConn implementation where sent messages are echoed back on the same connection. |
Package p2p (point to point) defines a net.PacketConn implementation where messages are exchanged via channels.
|
Package p2p (point to point) defines a net.PacketConn implementation where messages are exchanged via channels. |
Click to show internal directories.
Click to hide internal directories.