Documentation
¶
Index ¶
- func GetAssertMessage(testCaseMessenger TestCaseMessenger, counter int) string
- func GetAssertMessageQuick(when, actual, expected interface{}, counter int) string
- func GetMessageToSorted(isPrint bool, message, joiner string) string
- func GetMessageToSortedArray(isPrint bool, isSort bool, message string) []string
- func GetMessageToSortedArrayDefault(message string) []string
- func GetTestHeader(testCaseMessenger TestCaseMessenger) string
- func GetTrimmedNonEmptySpaceSplit(message string, isSort bool) []string
- func IsErrorNonWhiteSortedEqual(isPrintOnFail bool, actual error, ...) bool
- func IsStrMsgNonWhiteSortedEqual(isPrintOnFail bool, actual string, ...) bool
- func LogOnFail(isPass bool, expected, actual interface{})
- func PrintFailedExpected(isFailed bool, when, actual, expected interface{}, counter int)
- func PrintNameValue(header string, any interface{})
- func PrintValue(header string, any interface{})
- func SkipOnUnix(t *testing.T)
- func SkipOnWindows(t *testing.T)
- func ToStringNameValues(any interface{}) string
- func ToStringValues(any interface{}) string
- type CaseIndexPlusIsPrint
- type Compare
- type ComparingInstruction
- type SimpleGherkins
- type TestCaseMessenger
- type TestFuncName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAssertMessage ¶ added in v0.0.4
func GetAssertMessage(testCaseMessenger TestCaseMessenger, counter int) string
func GetAssertMessageQuick ¶ added in v0.0.4
func GetMessageToSorted ¶ added in v0.6.2
func GetMessageToSortedArray ¶ added in v0.6.2
func GetMessageToSortedArrayDefault ¶ added in v0.6.2
GetMessageToSortedArrayDefault
isPrint: false, isSort: true
func GetTestHeader ¶ added in v0.0.4
func GetTestHeader(testCaseMessenger TestCaseMessenger) string
func GetTrimmedNonEmptySpaceSplit ¶ added in v0.6.4
func IsErrorNonWhiteSortedEqual ¶ added in v0.7.3
func IsErrorNonWhiteSortedEqual( isPrintOnFail bool, actual error, expectationMessageDef *msgtype.ExpectationMessageDef, ) bool
func IsStrMsgNonWhiteSortedEqual ¶ added in v0.7.3
func IsStrMsgNonWhiteSortedEqual( isPrintOnFail bool, actual string, expectationMessageDef *msgtype.ExpectationMessageDef, ) bool
func PrintFailedExpected ¶ added in v0.6.2
func PrintNameValue ¶ added in v0.3.8
func PrintNameValue(header string, any interface{})
func PrintValue ¶ added in v0.3.8
func PrintValue(header string, any interface{})
func ToStringNameValues ¶ added in v0.3.8
func ToStringNameValues(any interface{}) string
func ToStringValues ¶ added in v0.3.8
func ToStringValues(any interface{}) string
Types ¶
type CaseIndexPlusIsPrint ¶ added in v0.7.3
type Compare ¶ added in v0.6.3
type Compare struct { MatchingLength int // 0/-1 means all, number means, that number must match StringContains string // contains filtered or unexported fields }
func (*Compare) GetPrintMessage ¶ added in v0.6.3
func (*Compare) IsMatch ¶ added in v0.6.3
func (it *Compare) IsMatch( isPrint bool, index int, instruction *ComparingInstruction, ) bool
func (*Compare) SortedString ¶ added in v0.6.3
func (*Compare) SortedStrings ¶ added in v0.6.3
type ComparingInstruction ¶ added in v0.6.3
type ComparingInstruction struct { FunName, Header, TestCaseName, MatchingAsEqualExpectation string ComparingItems []Compare HasWhitespace, IsMatchingAsEqual bool // contains filtered or unexported fields }
func (*ComparingInstruction) Actual ¶ added in v0.6.3
func (it *ComparingInstruction) Actual() string
func (*ComparingInstruction) ActualHashset ¶ added in v0.6.3
func (it *ComparingInstruction) ActualHashset() *corestr.Hashset
func (*ComparingInstruction) IsMatch ¶ added in v0.6.9
func (it *ComparingInstruction) IsMatch( caseIndexPlusIsPrint *CaseIndexPlusIsPrint, ) bool
func (*ComparingInstruction) SetActual ¶ added in v0.6.4
func (it *ComparingInstruction) SetActual(actual string)
type SimpleGherkins ¶ added in v0.6.9
type SimpleGherkins struct { Feature, Given, When, Then, Expect, Actual string }
SimpleGherkins
https://www.guru99.com/gherkin-test-cucumber.html Feature: Login functionality of social networking site Facebook. Given: I am a facebook user. When: I enter username as username. And I enter the password as the password Then I should be redirected to the home page of facebook Given -> When -> Then
func (*SimpleGherkins) GetMessageConditional ¶ added in v0.6.9
func (it *SimpleGherkins) GetMessageConditional( isExpectation bool, testIndex int, ) string
func (*SimpleGherkins) GetWithExpectation ¶ added in v0.6.9
func (it *SimpleGherkins) GetWithExpectation( testIndex int, ) string
func (*SimpleGherkins) String ¶ added in v0.6.9
func (it *SimpleGherkins) String() string
func (*SimpleGherkins) ToString ¶ added in v0.6.9
func (it *SimpleGherkins) ToString(testIndex int) string
type TestCaseMessenger ¶ added in v0.0.4
type TestCaseMessenger interface { FuncName() string Value() interface{} Expected() interface{} Actual() interface{} }
type TestFuncName ¶ added in v0.0.4
type TestFuncName string
func (TestFuncName) Value ¶ added in v0.0.4
func (funcName TestFuncName) Value() string
Source Files
¶
- CaseIndexPlusIsPrint.go
- Compare.go
- CompareInstruction.go
- GetAssertMessage.go
- GetAssertMessageQuick.go
- GetLogMessageBoolFailed.go
- GetMessageToSorted.go
- GetMessageToSortedArray.go
- GetMessageToSortedArrayDefault.go
- GetTestHeader.go
- GetTrimmedNonEmptySpaceSplit.go
- IsErrorNonWhiteSortedEqual.go
- IsStrMsgNonWhiteSortedEqual.go
- PrintFailedExpected.go
- PrintNameValue.go
- PrintValues.go
- SimpleGherkins.go
- SkipOnUnix.go
- SkipOnWindows.go
- TestCaseMessenger.go
- TestFuncName.go
- ToStringNameValues.go
- ToStringValues.go
- consts.go
- isStrMsgNonWhiteSortedEqualInternal.go
Click to show internal directories.
Click to hide internal directories.