Documentation ¶
Index ¶
- type CommitTableBuilder
- type DataTable
- func (self *DataTable) AddRow(elements ...string)
- func (self *DataTable) EqualDataTable(other DataTable) (diff string, errorCount int)
- func (self *DataTable) EqualGherkin(other *messages.PickleStepArgument_PickleTable) (diff string, errorCount int)
- func (self *DataTable) Expand(localRepo runner, remoteRepo runner, initialDevSHAs map[string]domain.SHA, ...) DataTable
- func (self *DataTable) RemoveText(text string)
- func (self *DataTable) Sort()
- func (self *DataTable) String() string
- type TagTableBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitTableBuilder ¶
type CommitTableBuilder struct {
// contains filtered or unexported fields
}
CommitTableBuilder collects data about commits in Git repositories in the same way that our Gherkin tables describing commits in repos are organized.
func NewCommitTableBuilder ¶
func NewCommitTableBuilder() CommitTableBuilder
NewCommitTableBuilder provides a fully initialized instance of CommitTableBuilder.
func (*CommitTableBuilder) Add ¶
func (self *CommitTableBuilder) Add(commit git.Commit, location string)
Add registers the given commit from the given location into this table.
func (*CommitTableBuilder) AddMany ¶
func (self *CommitTableBuilder) AddMany(commits []git.Commit, location string)
AddMany registers the given commits from the given location into this table.
func (*CommitTableBuilder) Table ¶
func (self *CommitTableBuilder) Table(fields []string) DataTable
Table provides the data accumulated by this CommitTableBuilder as a DataTable.
type DataTable ¶
type DataTable struct { // table data organized as rows and columns Cells [][]string `exhaustruct:"optional"` }
DataTable allows comparing user-generated data with Gherkin tables. The zero value is an empty DataTable.
func FromGherkin ¶
func FromGherkin(table *messages.PickleStepArgument_PickleTable) DataTable
FromGherkin provides a DataTable instance populated with data from the given Gherkin table.
func (*DataTable) EqualDataTable ¶
EqualDataTable compares this DataTable instance to the given DataTable. If both are equal it returns an empty string, otherwise a diff printable on the console.
func (*DataTable) EqualGherkin ¶
func (self *DataTable) EqualGherkin(other *messages.PickleStepArgument_PickleTable) (diff string, errorCount int)
EqualGherkin compares this DataTable instance to the given Gherkin self. If both are equal it returns an empty string, otherwise a diff printable on the console.
func (*DataTable) Expand ¶
func (self *DataTable) Expand(localRepo runner, remoteRepo runner, initialDevSHAs map[string]domain.SHA, initialOriginSHAs map[string]domain.SHA) DataTable
Expand returns a new DataTable instance with the placeholders in this datatable replaced with the given values.
func (*DataTable) RemoveText ¶
RemoveText deletes the given text from each cell.
type TagTableBuilder ¶
type TagTableBuilder struct {
// contains filtered or unexported fields
}
TagTableBuilder collects data about tags in Git repositories in the same way that our Gherkin tables describing tags in repos are organized.
func NewTagTableBuilder ¶
func NewTagTableBuilder() TagTableBuilder
NewTagTableBuilder provides a fully initialized instance of TagTableBuilder.
func (*TagTableBuilder) Add ¶
func (self *TagTableBuilder) Add(tag, location string)
Add registers the given tag from the given location into this table.
func (*TagTableBuilder) AddMany ¶
func (self *TagTableBuilder) AddMany(tags []string, location string)
AddMany registers the given tags from the given location into this table.
func (*TagTableBuilder) Table ¶
func (self *TagTableBuilder) Table() DataTable
Table provides the data accumulated by this TagTableBuilder as a DataTable.