Skip to content
Snippets Groups Projects
GherkinsStringWithExpectation.go 391 B
Newer Older
  • Learn to ignore specific revisions
  • 
    import (
    	"fmt"
    
    	"gitlab.com/evatix-go/core/internal/msgformats"
    )
    
    func GherkinsStringWithExpectation(
    	testCaseIndex int,
    	feature,
    	given,
    	when,
    	then,
    	actual,
    	expectation interface{},
    ) string {
    	return fmt.Sprintf(
    		msgformats.SimpleGherkinsWithExpectationFormat,
    		testCaseIndex,
    		feature,
    		testCaseIndex,
    		given,
    		when,
    		then,
    		actual,
    		expectation,
    	)
    }