execute a Read()
(tb testing.TB, c *proto.Client, want string)
| 119 | |
| 120 | // execute a Read() |
| 121 | func mustRead(tb testing.TB, c *proto.Client, want string) { |
| 122 | tb.Helper() |
| 123 | res, err := c.Read() |
| 124 | ok(tb, err) |
| 125 | equals(tb, want, res) |
| 126 | } |
| 127 | |
| 128 | // execute a Do(args[,-1]...), which result needs to Contain() the same as the last arg. |
| 129 | func mustContain(tb testing.TB, c *proto.Client, args ...string) { |