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

Function TestIterativeStateSyncIndividual

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

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

(t *testing.T)

Source from the content-addressed store, hash-verified

132// Tests that given a root hash, a state can sync iteratively on a single thread,
133// requesting retrieval tasks and returning all of them in one go.
134func TestIterativeStateSyncIndividual(t *testing.T) { testIterativeStateSync(t, 1) }
135func TestIterativeStateSyncBatched(t *testing.T) { testIterativeStateSync(t, 100) }
136
137func testIterativeStateSync(t *testing.T, batch int) {

Callers

nothing calls this directly

Calls 1

testIterativeStateSyncFunction · 0.85

Tested by

no test coverage detected