MCPcopy Create free account
hub / github.com/encodeous/nylon / TestTwoDevicePing

Function TestTwoDevicePing

polyamide/device/device_test.go:195–204  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

193}
194
195func TestTwoDevicePing(t *testing.T) {
196 goroutineLeakCheck(t)
197 pair := genTestPair(t, true)
198 t.Run("ping 1.0.0.1", func(t *testing.T) {
199 pair.Send(t, Ping, nil)
200 })
201 t.Run("ping 1.0.0.2", func(t *testing.T) {
202 pair.Send(t, Pong, nil)
203 })
204}
205
206func TestUpDown(t *testing.T) {
207 goroutineLeakCheck(t)

Callers

nothing calls this directly

Calls 3

goroutineLeakCheckFunction · 0.85
genTestPairFunction · 0.85
SendMethod · 0.65

Tested by

no test coverage detected