(tb testing.TB, c *proto.Client, args ...interface{})
| 280 | } |
| 281 | |
| 282 | func directDoBoolErr(tb testing.TB, c *proto.Client, args ...interface{}) (bool, error) { |
| 283 | tb.Helper() |
| 284 | argList := interfaceToString(args) |
| 285 | |
| 286 | res, err := c.Do(argList...) |
| 287 | ok(tb, err) |
| 288 | i, err := proto.Parse(res) |
| 289 | ok(tb, err) |
| 290 | v, _ := i.(int) |
| 291 | return v > 0, err |
| 292 | } |
| 293 | |
| 294 | func directDoList(tb testing.TB, c *proto.Client, args ...interface{}) (interface{}, error) { |
| 295 | tb.Helper() |
nothing calls this directly
no test coverage detected