Simplify function and structure names for tests
This commit is contained in:
parent
07ed716279
commit
38cd52ffd6
2 changed files with 9 additions and 9 deletions
|
|
@ -13,7 +13,7 @@ import (
|
|||
"gitlab.com/revalus/grm/config"
|
||||
)
|
||||
|
||||
type TestDir struct {
|
||||
type TestSetup struct {
|
||||
rootFS billy.Filesystem
|
||||
baseRepository struct {
|
||||
fileSystem billy.Filesystem
|
||||
|
|
@ -42,7 +42,7 @@ func createTmpDir() string {
|
|||
return tempDir
|
||||
}
|
||||
|
||||
func getTestDirForTests() TestDir {
|
||||
func getTestSetup() TestSetup {
|
||||
|
||||
tmpDir := createTmpDir()
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ func getTestDirForTests() TestDir {
|
|||
|
||||
checkErrorDuringPreparation(err)
|
||||
|
||||
return TestDir{
|
||||
return TestSetup{
|
||||
baseRepository: struct {
|
||||
fileSystem billy.Filesystem
|
||||
repo *git.Repository
|
||||
|
|
@ -100,8 +100,8 @@ func getFSForLocalRepo(dirName string, baseFileSystem billy.Filesystem) (billy.F
|
|||
return fsForLocalRepo, storageForTestRepo
|
||||
}
|
||||
|
||||
func getBaseForTestingSyncCommand() (StatusChecker, *git.Repository, config.RepositoryConfig, TestDir) {
|
||||
tmpDirWithInitialRepository := getTestDirForTests()
|
||||
func getBaseForTestingSyncCommand() (StatusChecker, *git.Repository, config.RepositoryConfig, TestSetup) {
|
||||
tmpDirWithInitialRepository := getTestSetup()
|
||||
dirNameForLocalRepository := "testRepo"
|
||||
fsForLocalRepo, storageForTestRepo := getFSForLocalRepo(dirNameForLocalRepository, tmpDirWithInitialRepository.rootFS)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue