Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Use AirSpec for property tests
  • Loading branch information
xerial committed May 12, 2021
commit c20c76dcdc2e3d9f0ef1b830718f1190f3cdf492
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ import xerial.core.util.{TimeReport, Timer}

import scala.language.implicitConversions

object MessagePackSpec {
def toHex(arr: Array[Byte]) = arr.map(x => f"$x%02x").mkString(" ")
}

trait MessagePackSpec extends AnyWordSpec with Matchers with GivenWhenThen with OptionValues with BeforeAndAfter with Benchmark with Logger {

implicit def toTag(s: String): Tag = Tag(s)

def toHex(arr: Array[Byte]) = arr.map(x => f"$x%02x").mkString(" ")

def createMessagePackData(f: MessagePacker => Unit): Array[Byte] = {
val b = new ByteArrayOutputStream()
val packer = MessagePack.newDefaultPacker(b)
Expand Down
Loading