@@ -67,7 +67,10 @@ func TestDefaultEventProcessor_ProcessImpression(t *testing.T) {
67
67
68
68
func TestCustomEventProcessor_Create (t * testing.T ) {
69
69
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 ))
71
74
processor .Start (exeCtx )
72
75
73
76
impression := BuildTestImpressionEvent ()
@@ -85,8 +88,10 @@ func TestCustomEventProcessor_Create(t *testing.T) {
85
88
86
89
func TestDefaultEventProcessor_LogEventNotification (t * testing.T ) {
87
90
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 )),
90
95
WithSDKKey ("fakeSDKKey" ))
91
96
92
97
var logEvent LogEvent
@@ -118,7 +123,8 @@ func TestDefaultEventProcessor_LogEventNotification(t *testing.T) {
118
123
119
124
func TestDefaultEventProcessor_DefaultConfig (t * testing.T ) {
120
125
exeCtx := utils .NewCancelableExecutionCtx ()
121
- processor := NewBatchEventProcessor (WithEventDispatcher (NewMockDispatcher (100 , false )))
126
+ processor := NewBatchEventProcessor (
127
+ WithEventDispatcher (NewMockDispatcher (100 , false )))
122
128
processor .Start (exeCtx )
123
129
124
130
impression := BuildTestImpressionEvent ()
@@ -321,8 +327,10 @@ func TestBatchEventProcessor_FlushesOnClose(t *testing.T) {
321
327
322
328
func TestDefaultEventProcessor_ProcessBatchRevisionMismatch (t * testing.T ) {
323
329
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 )))
326
334
327
335
processor .Start (exeCtx )
328
336
@@ -355,8 +363,10 @@ func TestDefaultEventProcessor_ProcessBatchRevisionMismatch(t *testing.T) {
355
363
356
364
func TestDefaultEventProcessor_ProcessBatchProjectMismatch (t * testing.T ) {
357
365
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 )))
360
370
361
371
processor .Start (exeCtx )
362
372
@@ -389,8 +399,10 @@ func TestDefaultEventProcessor_ProcessBatchProjectMismatch(t *testing.T) {
389
399
390
400
func TestChanQueueEventProcessor_ProcessImpression (t * testing.T ) {
391
401
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 {}))
394
406
395
407
processor .Start (exeCtx )
396
408
0 commit comments