Debug

trait Debug

This trait provides simple a way to print out any object to the console:

"this string".pp must ===("this string")

will print 'this string' and pass it to the rest of the expectation

Companion:
object
class Object
trait Matchable
class Any
object Debug.type
trait NoDebug

Extensions

Extensions

extension [T](t: => T)
def pp(using not: NotGiven[NoDebug], output: ConsoleOutput): T

print the object to the console and return it

print the object to the console and return it

def pp(using not: NotGiven[NoDebug], output: ConsoleOutput)(condition: Boolean): T

print the object to the console and return it, if the condition is satisfied

print the object to the console and return it, if the condition is satisfied

def pp(using not: NotGiven[NoDebug], output: ConsoleOutput)(condition: T => Boolean): T

print the object to the console and return it, if the condition is satisfied

print the object to the console and return it, if the condition is satisfied

@targetName("ppFunction")
def pp(using not: NotGiven[NoDebug], output: ConsoleOutput)(show: T => String): T

print the object to the console with a specific function and return it

print the object to the console with a specific function and return it

def pp(using not: NotGiven[NoDebug], output: ConsoleOutput)(pre: String): T

print the object to the console with a small message before

print the object to the console with a small message before