Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Commit

Permalink
feat: Make Generator and Simplifier fun interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jcornaz committed Aug 13, 2020
1 parent 313bfb8 commit 6454e57
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions detekt-config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
build:
maxIssues: 2

comments:
active: true
excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt,**/examples/**"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import com.github.jcornaz.kwik.fuzzer.api.ExperimentalKwikFuzzer
* The definition of what "simpler" means is defined by the implementer of this interface.
* For instance one may consider `1` simpler than `-189034789235`.
*/
@Suppress("UndocumentedPublicClass")
@ExperimentalKwikFuzzer
interface Simplifier<T> {
fun interface Simplifier<T> {

/**
* Returns a sequence of values that are simpler than [value].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import kotlin.random.Random
/**
* Random data generator capable of producing test data for property testing.
*/
interface Generator<out T> {
@Suppress("UndocumentedPublicClass")
fun interface Generator<out T> {

/**
* Returns a random value using the given [random].
Expand Down

0 comments on commit 6454e57

Please sign in to comment.