Skip to content

Commit

Permalink
Merge pull request #776 from romrell4/master
Browse files Browse the repository at this point in the history
Added logging when matcher fails with an assertion error
  • Loading branch information
Raibaz committed Jan 13, 2022
2 parents 788b183 + ced3ba7 commit bd543f6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions dsl/common/src/main/kotlin/io/mockk/Matchers.kt
Expand Up @@ -59,11 +59,7 @@ data class FunctionMatcher<in T : Any>(
return if(arg == null) {
false
} else {
try {
matchingFunc(arg)
} catch (a: AssertionError) {
false
}
matchingFunc(arg)
}
}

Expand Down

0 comments on commit bd543f6

Please sign in to comment.