github.com/vmpartner/bitmex@v1.1.0/tools/tools_test.go (about) 1 package tools 2 3 import ( 4 "testing" 5 "strconv" 6 ) 7 8 func TestCheckErr(t *testing.T) { 9 defer func() { 10 if r := recover(); r == nil { 11 t.Errorf("The code did not panic") 12 } 13 }() 14 _, err := strconv.Atoi("x1") 15 CheckErr(err) 16 }