output

package
v11.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CommandTypeFrontend = CommandType{"frontend"} //nolint:gochecknoglobals
	CommandTypeBackend  = CommandType{"backend"}  //nolint:gochecknoglobals
)

Functions

func RenderExecutedGitCommands

func RenderExecutedGitCommands(commands []ExecutedGitCommand, table *messages.PickleStepArgument_PickleTable) datatable.DataTable

RenderExecutedGitCommands provides the textual Gherkin table representation of the given executed Git commands. The DataTable table matches the structure of the given Gherkin table.

func RenderTable

func RenderTable(table *messages.PickleStepArgument_PickleTable) string

RenderTable provides the textual Gherkin representation of the given Gherkin table.

Types

type CommandType

type CommandType struct {
	// contains filtered or unexported fields
}

func (CommandType) String

func (self CommandType) String() string

type ExecutedGitCommand

type ExecutedGitCommand struct {
	// Branch contains the branch in which this command ran.
	Branch string

	// Command contains the command executed.
	Command string

	// frontend or backend
	CommandType CommandType
}

ExecutedGitCommand describes a Git command that was executed by Git Town during testing.

func GitCommandsInGitTownOutput

func GitCommandsInGitTownOutput(output string) []ExecutedGitCommand

GitCommandsInGitTownOutput provides the Git commands mentioned in the given Git Town output.

Jump to

Keyboard shortcuts

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