more tests
This commit is contained in:
@@ -41,17 +41,17 @@ type GitHandler struct {
|
||||
}
|
||||
|
||||
type GitHandlerGenerator interface {
|
||||
CreateGitHandler(git_author, email, name string) (*GitHandler, error);
|
||||
CreateGitHandler(git_author, email, prj_name string) (*GitHandler, error);
|
||||
}
|
||||
|
||||
type GitHandlerImpl struct {}
|
||||
|
||||
func (*GitHandlerImpl) CreateGitHandler(git_author, email, name string) (*GitHandler, error) {
|
||||
func (*GitHandlerImpl) CreateGitHandler(git_author, email, prj_name string) (*GitHandler, error) {
|
||||
var err error
|
||||
|
||||
git := new(GitHandler)
|
||||
git.GitCommiter = git_author
|
||||
git.GitPath, err = os.MkdirTemp("", name)
|
||||
git.GitPath, err = os.MkdirTemp("", prj_name)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("Cannot create temp dir: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user