(t *testing.T)
| 71 | } |
| 72 | |
| 73 | func TestOffsetRequestV1(t *testing.T) { |
| 74 | request := new(OffsetRequest) |
| 75 | request.Version = 1 |
| 76 | testRequest(t, "no blocks", request, offsetRequestNoBlocksV1) |
| 77 | |
| 78 | request.AddBlock("bar", 4, 1, 2) // Last argument is ignored for V1 |
| 79 | testRequest(t, "one block", request, offsetRequestOneBlockV1) |
| 80 | } |
| 81 | |
| 82 | func TestOffsetRequestV2(t *testing.T) { |
| 83 | request := new(OffsetRequest) |
nothing calls this directly
no test coverage detected