Skip to content

Commit

Permalink
Merge pull request #134 from Mexator/master
Browse files Browse the repository at this point in the history
Add CheckResult to KRecycler's childWith
  • Loading branch information
Vacxe authored Oct 19, 2024
2 parents a4f6096 + d940346 commit e9378b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package io.github.kakaocup.kakao.recycler

import android.view.View
import androidx.annotation.CheckResult
import androidx.test.espresso.DataInteraction
import androidx.test.espresso.Espresso
import androidx.test.espresso.Root
Expand Down Expand Up @@ -155,6 +156,7 @@ class KRecyclerView : RecyclerActions, BaseAssertions, RecyclerAdapterAssertions
* @param childMatcher Matcher for item in adapter
* @return Item with type T. To make actions/assertions on it immediately, use perform() infix function.
*/
@CheckResult
inline fun <reified T : KRecyclerItem<*>> childWith(noinline childMatcher: ViewBuilder.() -> Unit): T {
val provideItem = itemTypes.getOrElse(T::class) {
throw IllegalStateException("${T::class.java.simpleName} did not register to KRecyclerView")
Expand Down
2 changes: 1 addition & 1 deletion kakao/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.6.1
3.6.2

0 comments on commit e9378b7

Please sign in to comment.