git

package
v14.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocationLocal    = Location("local")
	LocationOrigin   = Location("origin")
	LocationCoworker = Location("coworker")
	LocationUpstream = Location("upstream")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	Author      string `exhaustruct:"optional"`
	Branch      gitdomain.LocalBranchName
	FileContent string    `exhaustruct:"optional"`
	FileName    string    `exhaustruct:"optional"`
	Locations   Locations `exhaustruct:"optional"`
	Message     string
	SHA         gitdomain.SHA `exhaustruct:"optional"`
}

Commit describes a Git commit.

func DefaultCommit

func DefaultCommit(filenameSuffix string) Commit

DefaultCommit provides a new Commit instance populated with the default values used in the absence of value specified by the test.

func FromGherkinTable

func FromGherkinTable(table *messages.PickleStepArgument_PickleTable, branchName gitdomain.LocalBranchName) []Commit

FromGherkinTable provides a Commit collection representing the data in the given Gherkin table.

func (*Commit) Set

func (self *Commit) Set(name, value string)

Set assigns the given value to the property with the given Gherkin table name.

type Location

type Location string

Location represents the location of a repo clone in the test setup

func NewLocation

func NewLocation(name string) Location

func (Location) String

func (self Location) String() string

type Locations

type Locations []Location

func NewLocations

func NewLocations(cucumberFormat string) Locations

func (Locations) Contains

func (self Locations) Contains(location Location) bool

Contains indicates whether this Locations instance contains the given location.

func (Locations) Matches

func (self Locations) Matches(elements ...Location) bool

Matches indicates whether this Locations instance contains exactly the given elements.

Jump to

Keyboard shortcuts

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