-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase code coverage (pt2). #389
Conversation
@@ -76,38 +75,27 @@ internal class ChildrenManager( | |||
) | |||
} | |||
|
|||
if (key is IndexedKey) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this as this will never happen
6ccdd76
to
6e2e633
Compare
JaCoCo Code Coverage 96.44% ✅
Generated by 🚫 Danger |
24a74ed
to
43329d8
Compare
@@ -12,7 +11,7 @@ internal class ChildrenManager( | |||
private val delegate: FormulaManagerImpl<*, *, *>, | |||
private val inspector: Inspector?, | |||
) { | |||
private var children: SingleRequestMap<Any, FormulaManager<*, *>>? = null | |||
private val children: SingleRequestMap<Any, FormulaManager<*, *>> = LinkedHashMap() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to optimize children
map initialization as FormulaManager
optimizes this already
fun <Input, State, Event> initOrFindListener(key: Any, useIndex: Boolean): ListenerImpl<Input, State, Event> { | ||
val currentHolder = listenerHolder<Input, State, Event>(key) | ||
return if (currentHolder.requested && useIndex) { | ||
if (key is IndexedKey) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't happen so no need to check
43329d8
to
fdd87cf
Compare
No description provided.