Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockConfigReadWriter ¶
MockConfigReadWriter mock config reader and writer
func NewConfigReadWriter ¶
func NewConfigReadWriter() *MockConfigReadWriter
NewConfigReadWriter mock config reader and writer
func (*MockConfigReadWriter) GetConfig ¶
func (m *MockConfigReadWriter) GetConfig(key string) (string, error)
GetConfig get config
func (*MockConfigReadWriter) SetConfig ¶
func (m *MockConfigReadWriter) SetConfig(key, value string) error
SetConfig update config
type MockFiles ¶
type MockFiles struct{}
MockFiles mock files
func (*MockFiles) ListAllFiles ¶
ListAllFiles list all fiels
type MockHeadReadWriter ¶
type MockHeadReadWriter struct { repository.HeadReader repository.HeadWriter }
MockHeadReadWriter mock head read and writer
func NewHeadReadWriter ¶
func NewHeadReadWriter() *MockHeadReadWriter
NewHeadReadWriter mock head reader and writer
type MockHeadReader ¶
type MockHeadReader struct {
Head string
}
MockHeadReader mock head reader
func (*MockHeadReader) GetHead ¶
func (m *MockHeadReader) GetHead() (string, error)
GetHead get head
func (*MockHeadReader) GetHeadSHA1 ¶
func (m *MockHeadReader) GetHeadSHA1() (string, error)
GetHeadSHA1 get head sha1
type MockHeadWriter ¶
type MockHeadWriter struct {
Head string
}
MockHeadWriter mock head writer
func (*MockHeadWriter) PopHead ¶
func (m *MockHeadWriter) PopHead(head string) error
PopHead pop head
Click to show internal directories.
Click to hide internal directories.