Skip to content

Commit

Permalink
Add NoViolation
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-scott committed Jan 1, 2016
1 parent 87f8e81 commit e0b513e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/scala/verification/minification/TestOracle.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ trait ViolationFingerprint {
def affectedNodes(): Seq[String]
}

case object NoViolation extends ViolationFingerprint {
def affectedNodes(): Seq[String] = Seq.empty
def matches(other: ViolationFingerprint): Boolean = false
}

object TestOracle {
// An predicate that returns None if the safety condition is not violated,
// i.e. the execution is correct. Otherwise, returns a
Expand Down

0 comments on commit e0b513e

Please sign in to comment.