mock

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitParser

type CommitParser struct {
	DidGetBumperFromCommit       bool
	GetBumperFromCommitOutput    gitmono.Bumper
	GetBumperFromCommitOutputMap map[string]gitmono.Bumper
}

CommitParser mock commit parser

func (*CommitParser) GetBumperFromCommit

func (cp *CommitParser) GetBumperFromCommit(c *git.Commit) gitmono.Bumper

GetBumperFromCommit mock bumper from commit implementation

type Logger

type Logger struct {
	LogOutput                  []*git.Commit
	LogError                   error
	DidLog                     bool
	CommitHashByRevisionOutput string
	CommitHashByRevisionError  error
	DidCommitHashByRevision    bool
}

Logger mock logger

func (*Logger) CommitHashByRevision

func (l *Logger) CommitHashByRevision(rev string) (string, error)

CommitHashByRevision mock commit from revision implementation

func (*Logger) Log

func (l *Logger) Log(from, to string) ([]*git.Commit, error)

Log mock log implementation

Jump to

Keyboard shortcuts

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