@@ -67,7 +67,10 @@ func TestDefaultEventProcessor_ProcessImpression(t *testing.T) {
6767
6868func TestCustomEventProcessor_Create (t * testing.T ) {
6969 exeCtx := utils .NewCancelableExecutionCtx ()
70- processor := NewBatchEventProcessor (WithEventDispatcher (NewMockDispatcher (100 , false )), WithQueueSize (10 ), WithFlushInterval (100 ))
70+ processor := NewBatchEventProcessor (
71+ WithEventDispatcher (NewMockDispatcher (100 , false )),
72+ WithQueueSize (10 ),
73+ WithFlushInterval (100 ))
7174 processor .Start (exeCtx )
7275
7376 impression := BuildTestImpressionEvent ()
@@ -85,8 +88,10 @@ func TestCustomEventProcessor_Create(t *testing.T) {
8588
8689func TestDefaultEventProcessor_LogEventNotification (t * testing.T ) {
8790 exeCtx := utils .NewCancelableExecutionCtx ()
88- processor := NewBatchEventProcessor (WithFlushInterval (100 ), WithQueueSize (100 ),
89- WithQueue (NewInMemoryQueue (100 )), WithEventDispatcher (NewMockDispatcher (100 , false )),
91+ processor := NewBatchEventProcessor (
92+ WithQueueSize (100 ),
93+ WithQueue (NewInMemoryQueue (100 )),
94+ WithEventDispatcher (NewMockDispatcher (100 , false )),
9095 WithSDKKey ("fakeSDKKey" ))
9196
9297 var logEvent LogEvent
@@ -118,7 +123,8 @@ func TestDefaultEventProcessor_LogEventNotification(t *testing.T) {
118123
119124func TestDefaultEventProcessor_DefaultConfig (t * testing.T ) {
120125 exeCtx := utils .NewCancelableExecutionCtx ()
121- processor := NewBatchEventProcessor (WithEventDispatcher (NewMockDispatcher (100 , false )))
126+ processor := NewBatchEventProcessor (
127+ WithEventDispatcher (NewMockDispatcher (100 , false )))
122128 processor .Start (exeCtx )
123129
124130 impression := BuildTestImpressionEvent ()
@@ -321,8 +327,10 @@ func TestBatchEventProcessor_FlushesOnClose(t *testing.T) {
321327
322328func TestDefaultEventProcessor_ProcessBatchRevisionMismatch (t * testing.T ) {
323329 exeCtx := utils .NewCancelableExecutionCtx ()
324- processor := NewBatchEventProcessor (WithQueueSize (100 ), WithFlushInterval (100 ),
325- WithQueue (NewInMemoryQueue (100 )), WithEventDispatcher (NewMockDispatcher (100 , false )))
330+ processor := NewBatchEventProcessor (
331+ WithQueueSize (100 ),
332+ WithQueue (NewInMemoryQueue (100 )),
333+ WithEventDispatcher (NewMockDispatcher (100 , false )))
326334
327335 processor .Start (exeCtx )
328336
@@ -355,8 +363,10 @@ func TestDefaultEventProcessor_ProcessBatchRevisionMismatch(t *testing.T) {
355363
356364func TestDefaultEventProcessor_ProcessBatchProjectMismatch (t * testing.T ) {
357365 exeCtx := utils .NewCancelableExecutionCtx ()
358- processor := NewBatchEventProcessor (WithQueueSize (100 ), WithFlushInterval (100 ),
359- WithQueue (NewInMemoryQueue (100 )), WithEventDispatcher (NewMockDispatcher (100 , false )))
366+ processor := NewBatchEventProcessor (
367+ WithQueueSize (100 ),
368+ WithQueue (NewInMemoryQueue (100 )),
369+ WithEventDispatcher (NewMockDispatcher (100 , false )))
360370
361371 processor .Start (exeCtx )
362372
@@ -389,8 +399,10 @@ func TestDefaultEventProcessor_ProcessBatchProjectMismatch(t *testing.T) {
389399
390400func TestChanQueueEventProcessor_ProcessImpression (t * testing.T ) {
391401 exeCtx := utils .NewCancelableExecutionCtx ()
392- processor := NewBatchEventProcessor (WithQueueSize (100 ), WithFlushInterval (100 ),
393- WithQueue (NewInMemoryQueue (100 )), WithEventDispatcher (& HTTPEventDispatcher {}))
402+ processor := NewBatchEventProcessor (
403+ WithQueueSize (100 ),
404+ WithQueue (NewInMemoryQueue (100 )),
405+ WithEventDispatcher (& HTTPEventDispatcher {}))
394406
395407 processor .Start (exeCtx )
396408
0 commit comments