(tb testing.TB, c *proto.Client, args ...interface{})
| 243 | } |
| 244 | |
| 245 | func directDoIntErr(tb testing.TB, c *proto.Client, args ...interface{}) (int, error) { |
| 246 | tb.Helper() |
| 247 | argList := interfaceToString(args) |
| 248 | |
| 249 | res, err := c.Do(argList...) |
| 250 | ok(tb, err) |
| 251 | i, err := proto.Parse(res) |
| 252 | ok(tb, err) |
| 253 | if err, ok := i.(error); ok { |
| 254 | return 0, err |
| 255 | } |
| 256 | return i.(int), err |
| 257 | } |
| 258 | |
| 259 | func directDoFloatErr(tb testing.TB, c *proto.Client, args ...interface{}) (float64, error) { |
| 260 | tb.Helper() |
no test coverage detected