(tb testing.TB, c *proto.Client, args ...interface{})
| 228 | } |
| 229 | |
| 230 | func directDoInt(tb testing.TB, c *proto.Client, args ...interface{}) int { |
| 231 | tb.Helper() |
| 232 | argList := interfaceToString(args) |
| 233 | |
| 234 | res, err := c.Do(argList...) |
| 235 | ok(tb, err) |
| 236 | i, err := proto.Parse(res) |
| 237 | if err, ok := i.(error); ok { |
| 238 | tb.Errorf("parse int error:%s", err.Error()) |
| 239 | return 0 |
| 240 | } |
| 241 | ok(tb, err) |
| 242 | return i.(int) |
| 243 | } |
| 244 | |
| 245 | func directDoIntErr(tb testing.TB, c *proto.Client, args ...interface{}) (int, error) { |
| 246 | tb.Helper() |
nothing calls this directly
no test coverage detected