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

     1  package coretests
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"gitlab.com/evatix-go/core/internal/msgformats"
     7  )
     8  
     9  // GetAssertMessageUsingSimpleTestCaseWrapper
    10  //
    11  //  Gives generic and consistent test message using msgformats.QuickIndexTitleInputActualExpectedMessageFormat
    12  func GetAssertMessageUsingSimpleTestCaseWrapper(testCaseIndex int, testCaseWrapper SimpleTestCaseWrapper) string {
    13  	return fmt.Sprintf(
    14  		msgformats.QuickIndexTitleInputActualExpectedMessageFormat,
    15  		testCaseIndex,
    16  		testCaseWrapper.CaseTitle(),
    17  		testCaseWrapper.Input(),
    18  		testCaseWrapper.Actual(),
    19  		testCaseWrapper.Expected())
    20  }