MCPcopy Create free account
hub / github.com/RTradeLtd/Lens / TestQueue_IsStopped

Function TestQueue_IsStopped

engine/queue/queue_test.go:51–59  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

49}
50
51func TestQueue_IsStopped(t *testing.T) {
52 var q = New(zaptest.NewLogger(t).Sugar(), nil, nil, Options{
53 Rate: 500 * time.Millisecond,
54 BatchSize: 1,
55 })
56 if b := q.IsStopped(); b != q.stopped {
57 t.Errorf("IsStopped = '%v', got '%v'", b, q.stopped)
58 }
59}

Callers

nothing calls this directly

Calls 2

IsStoppedMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected