(tb testing.TB, c *proto.Client, args ...interface{})
| 268 | } |
| 269 | |
| 270 | func directDoBool(tb testing.TB, c *proto.Client, args ...interface{}) bool { |
| 271 | tb.Helper() |
| 272 | argList := interfaceToString(args) |
| 273 | |
| 274 | res, err := c.Do(argList...) |
| 275 | ok(tb, err) |
| 276 | i, err := proto.Parse(res) |
| 277 | ok(tb, err) |
| 278 | v, _ := i.(int) |
| 279 | return v > 0 |
| 280 | } |
| 281 | |
| 282 | func directDoBoolErr(tb testing.TB, c *proto.Client, args ...interface{}) (bool, error) { |
| 283 | tb.Helper() |
no test coverage detected