MCPcopy Create free account
hub / github.com/33cn/chain33 / testGetLastHeader

Function testGetLastHeader

client/queueprotocol_test.go:330–335  ·  view source on GitHub ↗
(t *testing.T, api client.QueueProtocolAPI)

Source from the content-addressed store, hash-verified

328}
329
330func testGetLastHeader(t *testing.T, api client.QueueProtocolAPI) {
331 _, err := api.GetLastHeader()
332 if err != nil {
333 t.Error("Call GetLastHeader Failed.", err)
334 }
335}
336
337func testLocalGet(t *testing.T, api client.QueueProtocolAPI) {
338 _, err := api.LocalGet(nil)

Callers 1

TestQueueProtocolFunction · 0.85

Calls 2

GetLastHeaderMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected