(tb testing.TB, c *proto.Client, args ...interface{})
| 213 | } |
| 214 | |
| 215 | func directDoStringErr(tb testing.TB, c *proto.Client, args ...interface{}) (string, error) { |
| 216 | tb.Helper() |
| 217 | argList := interfaceToString(args) |
| 218 | |
| 219 | res, err := c.Do(argList...) |
| 220 | ok(tb, err) |
| 221 | str, err := proto.Parse(res) |
| 222 | ok(tb, err) |
| 223 | if err, ok := str.(error); ok { |
| 224 | return "", err |
| 225 | } |
| 226 | s, _ := str.(string) |
| 227 | return s, err |
| 228 | } |
| 229 | |
| 230 | func directDoInt(tb testing.TB, c *proto.Client, args ...interface{}) int { |
| 231 | tb.Helper() |
nothing calls this directly
no test coverage detected