gherkin/types.go
func (s *Scenario) LongestLine() int {
	if s.longestLine == 0 {
		s.longestLine = len("Scenario: " + s.Title)
		for _, step := range s.Steps {
			if l := len(string(step.Type) + " " + step.Text); l > s.longestLine {
				s.longestLine = l
			}
		}
	}
	return s.longestLine
}
func (s *Scenario) LongestLine() int {
	if s.longestLine == 0 {
		s.longestLine = len("Scenario: " + s.Title)
		for _, step := range s.Steps {
			if l := len(string(step.Type) + " " + step.Text); l > s.longestLine {
				s.longestLine = l
			}
		}
	}
	return s.longestLine
}
func ( s * Scenario ) LongestLine ( ) int { if s . longestLine == 0 { s . longestLine = len ( " " + s . Title ) for _ , step := range s . Steps { if l := len ( string ( step . Type ) + " " + step . Text ) ; l > s . longestLine { s . longestLine = l } } } return s . longestLine }
// LongestLine returns the longest step line in a scenario.
LongestLine returns the longest step line in a scenario .