(t *testing.T, api client.QueueProtocolAPI)
| 537 | } |
| 538 | |
| 539 | func testGetBlocks(t *testing.T, api client.QueueProtocolAPI) { |
| 540 | _, err := api.GetBlocks(&types.ReqBlocks{}) |
| 541 | if err != nil { |
| 542 | t.Error("Call GetBlocks Failed.", err) |
| 543 | } |
| 544 | _, err = api.GetBlocks(nil) |
| 545 | if err == nil { |
| 546 | t.Error("GetBlocks(nil) need return error.") |
| 547 | } |
| 548 | _, err = api.GetBlocks(&types.ReqBlocks{Start: 1}) |
| 549 | if err == nil { |
| 550 | t.Error("GetBlocks(&types.ReqBlocks{Start:1}) need return error.") |
| 551 | } |
| 552 | } |
| 553 | |
| 554 | func testGetLastBlockSequence(t *testing.T, api client.QueueProtocolAPI) { |
| 555 | res, err := api.GetLastBlockSequence() |
no test coverage detected