gitlab.com/evatix-go/core@v1.3.55/coretests/GetAssertMessageQuick.go (about)

     1  package coretests
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"gitlab.com/evatix-go/core/internal/msgformats"
     7  )
     8  
     9  // GetAssertMessageQuick
    10  //
    11  //  Gives generic and consistent test message using msgformats.QuickIndexInputActualExpectedMessageFormat
    12  func GetAssertMessageQuick(
    13  	when,
    14  	actual,
    15  	expected interface{},
    16  	counter int,
    17  ) string {
    18  	return fmt.Sprintf(
    19  		msgformats.QuickIndexInputActualExpectedMessageFormat,
    20  		counter,
    21  		when,
    22  		actual,
    23  		expected,
    24  	)
    25  }