RUMM-2421 Processor - process FullSnapshotRecords and dispatch to persister#1013
Conversation
ef329bc to
d3a7eaf
Compare
13a90bc to
af0db01
Compare
d3a7eaf to
82339be
Compare
0xnm
left a comment
There was a problem hiding this comment.
I've left some minor suggestions/questions, but overall looks good!
| var fakeSnapshot = forge.aSnapshot(1) | ||
| val invalidWidthWireframe: MobileSegment.Wireframe = if (forge.aBool()) { | ||
| forge.getForgery<MobileSegment.Wireframe.ShapeWireframe>() | ||
| .copy(width = forge.aLong(max = 0)) |
There was a problem hiding this comment.
max is exclusive, so if we want to cover cases where width == 0 as in the code, we need to use max = 1. Same for the else block below.
Codecov Report
@@ Coverage Diff @@
## feature/session-replay-vo #1013 +/- ##
=============================================================
+ Coverage 82.99% 83.09% +0.10%
=============================================================
Files 307 320 +13
Lines 9980 10296 +316
Branches 1628 1697 +69
=============================================================
+ Hits 8282 8555 +273
- Misses 1193 1207 +14
- Partials 505 534 +29
|
d347772 to
9b00bed
Compare
0xnm
left a comment
There was a problem hiding this comment.
I've left few comments, but overall lgtm!
| - "java.util.LinkedList.poll()" | ||
| - "java.util.LinkedList.addAll(kotlin.collections.Collection)" | ||
| - "java.util.LinkedHashMap.remove(kotlin.String)" | ||
| - "java.util.Stack.constructor()" | ||
| - "java.util.Stack.push(com.datadog.android.sessionreplay.recorder.Node)" | ||
| - "java.util.Stack.isNotEmpty()" | ||
| - "java.util.Stack.pop()" | ||
| - "java.util.Stack.push(com.datadog.android.sessionreplay.recorder.Node)" |
There was a problem hiding this comment.
minor: better to arrange those in alphabetical order as well
| forge.aStringMatching("#[0-9A-F]{6}FF") | ||
| }, | ||
| opacity = forge.aFloat(min = 0f, max = 1f), | ||
| cornerRadius = forge.aLong() |
There was a problem hiding this comment.
why here we use forge.aLong(), but in TextWireframeForgeryFactory it is forge.anInt(min = 0) for the similar argument?
There was a problem hiding this comment.
you're right, I will fix those.
| }, | ||
| textStyle = MobileSegment.TextStyle( | ||
| family = forge.aString(), | ||
| size = forge.aLong(min = 0), |
There was a problem hiding this comment.
btw, it seems there is aPositiveLong method
9b00bed to
e82ac59
Compare
e82ac59 to
bbbc4e6
Compare
What does this PR do?
A brief description of the change being made with this pull request.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Review checklist (to be filled by reviewers)