(t *testing.T, msg string, f func())
| 17 | } |
| 18 | |
| 19 | func assertPanic(t *testing.T, msg string, f func()) { |
| 20 | defer func() { |
| 21 | if r := recover(); r == nil { |
| 22 | t.Fatal(msg) |
| 23 | } |
| 24 | }() |
| 25 | f() |
| 26 | } |
| 27 | |
| 28 | func TestSessionCommandHandler(t *testing.T) { |
| 29 | var units = []struct { |
no test coverage detected