gitlab.com/evatix-go/core@v1.3.55/internal/msgformats/msgs.go (about)

     1  package msgformats
     2  
     3  const (
     4  	// LogFormat Contains name-value using %+v, %v for only value.
     5  	//
     6  	// Expectations : %+v
     7  	// Actual: %+v
     8  	LogFormat = "\n ====================================" +
     9  		"Actual vs IsMatchesExpectation " +
    10  		"====================================\n" +
    11  		"\tExpectations : %+v\n" +
    12  		"\tActual: %+v"
    13  	PrintValuesFormat = "\nHeader:%s\n" +
    14  		"\tType:%T\n" +
    15  		"\tValue:%s\n"
    16  
    17  	// QuickIndexInputActualExpectedMessageFormat
    18  	//
    19  	// Index, Input, Actual, Expected
    20  	QuickIndexInputActualExpectedMessageFormat = "----------------------\n" +
    21  		"%d )\tWhen:%#v\n\t\t" +
    22  		"  Actual:`%#v` ,\n\t\t" +
    23  		"Expected:`%#v`"
    24  
    25  	// QuickIndexTitleInputActualExpectedMessageFormat
    26  	//
    27  	// Index, Title, Input, Actual, Expected
    28  	QuickIndexTitleInputActualExpectedMessageFormat = "----------------------\n" +
    29  		"%d )\tTitle:%#v\n\t\t" +
    30  		"   Input:`%#v` ,\n\t\t" +
    31  		"  Actual:`%#v` ,\n\t\t" +
    32  		"Expected:`%#v`"
    33  
    34  	PrintWhenActualAndExpectedProcessedFormat = "" +
    35  		"\n%d )" +
    36  		"   When: %#v\n  " +
    37  		"    Func:`%#v` ,\n  " +
    38  		"  Actual:`%#v` ,\n  " +
    39  		"Expected:`%#v`\n  " +
    40  		"  Actual-Processed:`%#v`,\n  " +
    41  		"Expected-Processed:`%#v`,\n  " +
    42  		"    TestCase:`%#v` ,\n  "
    43  
    44  	PrintActualAndExpectedProcessedFormat = "----------------------" +
    45  		"\n%d )\t" +
    46  		"  Actual:`%#v` ,\n\t\t" +
    47  		"Expected:`%#v`\n\t\t" +
    48  		"  Actual-Processed:`%#v` ,\n\t\t" +
    49  		"Expected-Processed:`%#v`"
    50  
    51  	SearchTermExpectedFormat = `Expecting (left) TextValidator %s ~= %s search term (right), method %s`
    52  
    53  	PrintHeaderForSearchWithActualAndExpectedProcessedFormat = "" +
    54  		"%d )\t" +
    55  		"  Expectation failed: Using CompareMethod `%#v`, Line Index: %d\n  " +
    56  		"   Content-Processed:`%#v`\n  " +
    57  		"SearchTerm-Processed:`%#v`\n  " +
    58  		"          Additional:`%#v`"
    59  
    60  	PrintHeaderForSearchWithActualAndExpectedProcessedWithoutAdditionalFormat = "" +
    61  		"%d )\t" +
    62  		"         Expectation:`%s`, Line Index: %d\n  " +
    63  		"   Content-Processed:`%#v`\n  " +
    64  		"SearchTerm-Processed:`%#v`\n  "
    65  
    66  	PrintHeaderForSearchActualAndExpectedProcessedSimpleFormat = "%d )\t" +
    67  		"ExpectationLines failed: Failed match method [%#v], Index : [%#v]\n  " +
    68  		"   Actual-Processed: `%#v`\n  " +
    69  		" Expected-Processed: `%#v`"
    70  
    71  	PrintSearchLineNumberDidntMatchFormat = "----------------------" +
    72  		"\n%d )\t" +
    73  		"Line Number Failed to match: (left) Validator Line Number Expect [%d] != [%d] Actual Content Line Number \n  " +
    74  		"        TextValidator:`%#v`\n  " +
    75  		"           SearchTerm:`%#v`\n  " +
    76  		"Line Number Expecting:`%#v`\n  " +
    77  		" Line Number Received:`%#v`\n  " +
    78  		"           Additional:`%#v`"
    79  
    80  	SimpleGherkinsFormat = "----------------------" +
    81  		"\n%d )\t" +
    82  		"Feature: `%#v` , Index: [%d]\n  " +
    83  		"  Given: `%#v`\n  " +
    84  		"  When: `%#v`\n  " +
    85  		"  Then: `%#v`\n  "
    86  
    87  	SimpleGherkinsWithExpectationFormat = "----------------------" +
    88  		"\n%d )\t" +
    89  		"   Feature: `%#v` , Index: [%d]\n  " +
    90  		"     Given: `%#v`\n  " +
    91  		"      When: `%#v`\n  " +
    92  		"      Then: `%#v`\n  " +
    93  		"    Actual: `%#v`\n  " +
    94  		"  Expected: `%#v`\n  "
    95  	SimpleGherkinsExpectationFormat = "" +
    96  		"    Actual: `%#v`\n  " +
    97  		"  Expected: `%#v`\n  "
    98  
    99  	TextValidatorSingleLineFormat = "" +
   100  		"Search Input: [`%s`], " +
   101  		"CompareMethod: [`%s`], " +
   102  		"IsTrimCompare: [`%#v`], " +
   103  		"IsSplitByWhitespace: [`%#v`], " +
   104  		"IsUniqueWordOnly: [`%#v`], " +
   105  		"IsNonEmptyWhitespace: [`%#v`], " +
   106  		"IsSortStringsBySpace: [`%#v`]"
   107  
   108  	TextValidatorMultiLineFormat = "" +
   109  		"        Search Input: [`%s`],\n " +
   110  		"              CompareMethod: [`%s`],\n " +
   111  		"       IsTrimCompare: [`%#v`],\n " +
   112  		" IsSplitByWhitespace: [`%#v`],\n " +
   113  		"    IsUniqueWordOnly: [`%#v`],\n " +
   114  		"IsNonEmptyWhitespace: [`%#v`],\n " +
   115  		"IsSortStringsBySpace: [`%#v`]"
   116  
   117  	MsgHeaderFormat = "\n============================>\n" +
   118  		"`%#v`" +
   119  		"\n============================>\n\n"
   120  	EndingDashes              = "============================"
   121  	MsgHeaderPlusEndingFormat = "\n============================>\n" +
   122  		"%s" +
   123  		"\n============================>\n" +
   124  		"%s" +
   125  		"\n============================>"
   126  
   127  	LinePrinterFormat = "%#v,"
   128  )