Documentation ¶
Overview ¶
Package finite_tests provides a test suite for finite queues
Index ¶
- func TestCapacity(t *testing.T, newQueue func(int) interface{ ... }) func(*testing.T)
- func TestEnqueue(t *testing.T, rate, timeout time.Duration, newQueue func(int) interface{ ... }) func(*testing.T)
- func TestEnqueueEvent(t *testing.T, rate, timeout time.Duration, ...) func(*testing.T)
- func TestEnqueueInFront(t *testing.T, newQueue func(int) interface{ ... }) func(*testing.T)
- func TestEnqueueLossy(t *testing.T, newQueue func(int) interface{ ... }) func(*testing.T)
- func TestEnqueueMultiple(t *testing.T, newQueue func(int) interface{ ... }) func(*testing.T)
- func TestResize(t *testing.T, newQueue func(int) interface{ ... }) func(*testing.T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestCapacity ¶
func TestEnqueue ¶
func TestEnqueueEvent ¶ added in v1.2.2
func TestEnqueueEvent(t *testing.T, rate, timeout time.Duration, newQueue func(size int) interface { goqueue.Owner goqueue.Enqueuer goqueue.Dequeuer goqueue.Event }) func(*testing.T)
TestEnqueueEvent will confirm the behavior of the signal channel for enqueues, it will operate off of the idea that a fixed queue can utilize a buffered channel such that a signal is received for every item enqueued
func TestEnqueueInFront ¶
func TestEnqueueLossy ¶
func TestEnqueueMultiple ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.