transformer

package
v3.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: MIT Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL