MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / TestChunkQueue_Size

Function TestChunkQueue_Size

statesync/chunks_test.go:481–490  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

479}
480
481func TestChunkQueue_Size(t *testing.T) {
482 queue, teardown := setupChunkQueue(t)
483 defer teardown()
484
485 assert.EqualValues(t, 5, queue.Size())
486
487 err := queue.Close()
488 require.NoError(t, err)
489 assert.EqualValues(t, 0, queue.Size())
490}
491
492func TestChunkQueue_WaitFor(t *testing.T) {
493 queue, teardown := setupChunkQueue(t)

Callers

nothing calls this directly

Calls 3

setupChunkQueueFunction · 0.85
SizeMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected