gitlab.com/evatix-go/core@v1.3.55/coretests/GetLogMessageBoolFailed.go (about) 1 package coretests 2 3 import ( 4 "fmt" 5 6 "gitlab.com/evatix-go/core/internal/msgformats" 7 ) 8 9 func LogOnFail( 10 isPass bool, 11 expected, actual interface{}, 12 ) { 13 if isPass { 14 return 15 } 16 17 logMessage := fmt.Sprintf(msgformats.LogFormat, expected, actual) 18 fmt.Println(logMessage) 19 }