assertions
ci.vdhsn.com/push Build is passing
Details
ci.vdhsn.com/push Build is passing
Details
parent
e54af4e2b5
commit
37b69c5da4
@ -0,0 +1,15 @@
|
||||
package internal
|
||||
|
||||
import "log"
|
||||
|
||||
func AssertFail(condition bool, fmtStr string, params ...interface{}) {
|
||||
if condition {
|
||||
log.Panicf(fmtStr, params...)
|
||||
}
|
||||
}
|
||||
|
||||
func Assert(condition bool, fmtStr string, params ...interface{}) {
|
||||
if condition {
|
||||
log.Printf(fmtStr, params...)
|
||||
}
|
||||
}
|
Loading…
Reference in new issue