pr: more unit tests
This commit is contained in:
@@ -30,6 +30,8 @@ import (
|
||||
"sync"
|
||||
)
|
||||
|
||||
//go:generate mockgen -source=git_utils.go -destination=mock/git_utils.go -typed
|
||||
|
||||
type GitHandler struct {
|
||||
DebugLogger bool
|
||||
|
||||
@@ -38,7 +40,13 @@ type GitHandler struct {
|
||||
GitEmail string
|
||||
}
|
||||
|
||||
func CreateGitHandler(git_author, email, name string) (*GitHandler, error) {
|
||||
type GitHandlerGenerator interface {
|
||||
CreateGitHandler(git_author, email, name string) (*GitHandler, error);
|
||||
}
|
||||
|
||||
type GitHandlerImpl struct {}
|
||||
|
||||
func (*GitHandlerImpl) CreateGitHandler(git_author, email, name string) (*GitHandler, error) {
|
||||
var err error
|
||||
|
||||
git := new(GitHandler)
|
||||
|
Reference in New Issue
Block a user