Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentTransformer ¶
type ContentTransformer struct {
// contains filtered or unexported fields
}
ContentTransformer adapts a content for the gherkin parser to fix everything that is not taking into account in the parser. The transformer records all settings, remove/replace everything that could triggers errors then it restores all settings that need to be restored in the original content
func (*ContentTransformer) DetectSettings ¶
func (c *ContentTransformer) DetectSettings(content []byte)
DetectSettings stores all settings specifics to the content being processed
func (*ContentTransformer) Prepare ¶
func (c *ContentTransformer) Prepare(content []byte) []byte
Prepare removes/replaces all settings int the content that would not be handle properly by the gherkin parser
func (*ContentTransformer) Restore ¶
func (c *ContentTransformer) Restore(content []byte) []byte
Restore used recorded settings to restore all settings from the original content that need to be preserved
Click to show internal directories.
Click to hide internal directories.