MCPcopy Create free account
hub / github.com/CPChain/chain / TestIterativeRandomStateSyncIndividual

Function TestIterativeRandomStateSyncIndividual

core/state/sync_test.go:203–203  ·  view source on GitHub ↗

Tests that given a root hash, a trie can sync iteratively on a single thread, requesting retrieval tasks and returning all of them in one go, however in a random order.

(t *testing.T)

Source from the content-addressed store, hash-verified

201// requesting retrieval tasks and returning all of them in one go, however in a
202// random order.
203func TestIterativeRandomStateSyncIndividual(t *testing.T) { testIterativeRandomStateSync(t, 1) }
204func TestIterativeRandomStateSyncBatched(t *testing.T) { testIterativeRandomStateSync(t, 100) }
205
206func testIterativeRandomStateSync(t *testing.T, batch int) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected