Skip to content

Commit 193c27b

Browse files
committed
Add SentryItemBatcherTests to enhance item batching functionality
- Introduced new test file `SentryItemBatcherTests.swift` to validate the behavior of the `SentryItemBatcher`. - Added tests for various scenarios including item addition, buffer size limits, timeout handling, and attribute enrichment. - Updated project configuration to include the new test file in the build settings.
1 parent 3ca02d7 commit 193c27b

File tree

3 files changed

+1028
-127
lines changed

3 files changed

+1028
-127
lines changed

Sentry.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,7 @@
814814
D4D0E1E82E9D040A00358814 /* SentrySessionReplayEnvironmentCheckerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4D0E1E22E9D040800358814 /* SentrySessionReplayEnvironmentCheckerTests.swift */; };
815815
D4D12E7A2DFC608800DC45C4 /* SentryScreenshotOptionsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4D12E792DFC607F00DC45C4 /* SentryScreenshotOptionsTests.swift */; };
816816
D4DDC0D42EE84FE100F321F6 /* SentryItemBatcher.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4DDC0D32EE84FE100F321F6 /* SentryItemBatcher.swift */; };
817+
D4DDC0F42EE8572F00F321F6 /* SentryItemBatcherTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4DDC0F32EE8572F00F321F6 /* SentryItemBatcherTests.swift */; };
817818
D4DEE6592E439B2E00FCA5A9 /* SentryProfileTimeseriesTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D4DEE6582E439B2E00FCA5A9 /* SentryProfileTimeseriesTests.m */; };
818819
D4E3F35D2D4A864600F79E2B /* SentryNSDictionarySanitizeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D42E48582D48FC8F00D251BC /* SentryNSDictionarySanitizeTests.swift */; };
819820
D4E3F35E2D4A877300F79E2B /* SentryNSDictionarySanitize+Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = D41909942D490006002B83D0 /* SentryNSDictionarySanitize+Tests.m */; };
@@ -2180,6 +2181,7 @@
21802181
D4D0E1E22E9D040800358814 /* SentrySessionReplayEnvironmentCheckerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentrySessionReplayEnvironmentCheckerTests.swift; sourceTree = "<group>"; };
21812182
D4D12E792DFC607F00DC45C4 /* SentryScreenshotOptionsTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryScreenshotOptionsTests.swift; sourceTree = "<group>"; };
21822183
D4DDC0D32EE84FE100F321F6 /* SentryItemBatcher.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryItemBatcher.swift; sourceTree = "<group>"; };
2184+
D4DDC0F32EE8572F00F321F6 /* SentryItemBatcherTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryItemBatcherTests.swift; sourceTree = "<group>"; };
21832185
D4DEE6582E439B2E00FCA5A9 /* SentryProfileTimeseriesTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryProfileTimeseriesTests.m; sourceTree = "<group>"; };
21842186
D4E942042E9D1CF300DB7521 /* TestSessionReplayEnvironmentChecker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestSessionReplayEnvironmentChecker.swift; sourceTree = "<group>"; };
21852187
D4E9420B2E9D1D7600DB7521 /* TestSessionReplayEnvironmentCheckerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestSessionReplayEnvironmentCheckerTests.swift; sourceTree = "<group>"; };
@@ -3056,6 +3058,7 @@
30563058
0A1B497228E597DD00D7BFA3 /* TestLogOutput.swift */,
30573059
D8AE48C02C57B1550092A2A6 /* SentryLevelTests.swift */,
30583060
92235CAF2E155B2600865983 /* SentryLoggerTests.swift */,
3061+
D4DDC0F32EE8572F00F321F6 /* SentryItemBatcherTests.swift */,
30593062
928BED2A2E16977A00B4D398 /* SentryLogBatcherTests.swift */,
30603063
F49D41992DEA2FB000D9244E /* SentryCrashExceptionApplicationTests.swift */,
30613064
F40E42FA2EAAAD4500E53876 /* PrivateSentrySDKOnlyTests.swift */,
@@ -6305,6 +6308,7 @@
63056308
D4D12E7A2DFC608800DC45C4 /* SentryScreenshotOptionsTests.swift in Sources */,
63066309
7B6C5ED6264E62CA0010D138 /* SentryTransactionTests.swift in Sources */,
63076310
D81FDF12280EA1060045E0E4 /* SentryScreenshotSourceTests.swift in Sources */,
6311+
D4DDC0F42EE8572F00F321F6 /* SentryItemBatcherTests.swift in Sources */,
63086312
D8019910286B089000C277F0 /* SentryCrashReportSinkTests.swift in Sources */,
63096313
D885266427739D01001269FC /* SentryFileIOTrackingIntegrationTests.swift in Sources */,
63106314
7BBD18992449DE9D00427C76 /* TestRateLimits.swift in Sources */,

0 commit comments

Comments
 (0)