Skip to content
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

Drop WithExamples #175

Merged
merged 1 commit into from
Aug 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions core/shared/src/main/scala/hedgehog/core/PropertyT.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,12 @@ case class PropertyConfig(
testLimit: SuccessCount
, discardLimit: DiscardCount
, shrinkLimit: ShrinkLimit
, withExamples: WithExamples
)

object PropertyConfig {

def default: PropertyConfig =
PropertyConfig(SuccessCount(100), DiscardCount(100), ShrinkLimit(1000), WithExamples.NoExamples)
PropertyConfig(SuccessCount(100), DiscardCount(100), ShrinkLimit(1000))
}

case class PropertyT[A](
Expand Down Expand Up @@ -269,15 +268,6 @@ case class DiscardCount(value: Int) {
DiscardCount(value + 1)
}

/** Whether the report should include an example for each label. */
sealed trait WithExamples

object WithExamples {

case object WithExamples extends WithExamples
case object NoExamples extends WithExamples
}

/**
* The status of a property test run.
*
Expand Down
3 changes: 0 additions & 3 deletions runner/shared/src/main/scala/hedgehog/runner/Properties.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ class Test(

def noShrinking: Test =
config(_.copy(shrinkLimit = ShrinkLimit(0)))

def withExamples: Test =
config(_.copy(withExamples = WithExamples.WithExamples))
}

object Test {
Expand Down