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
|
|
@ -12,7 +12,7 @@ import (
|
|||
)
|
||||
|
||||
func TestIfBranchesAreEqual(t *testing.T) {
|
||||
tmpDirWithInitialRepository := getTestDirForTests()
|
||||
tmpDirWithInitialRepository := getTestSetup()
|
||||
|
||||
fakeLocalRepo, err := git.Clone(memory.NewStorage(), memfs.New(), &git.CloneOptions{
|
||||
URL: tmpDirWithInitialRepository.baseRepository.fileSystem.Root(),
|
||||
|
|
@ -42,7 +42,7 @@ func TestIfBranchesAreEqual(t *testing.T) {
|
|||
|
||||
func TestIfCurrentBranchIsDifferent(t *testing.T) {
|
||||
|
||||
tmpDirWithInitialRepository := getTestDirForTests()
|
||||
tmpDirWithInitialRepository := getTestSetup()
|
||||
fakeLocalRepo, err := git.Clone(memory.NewStorage(), memfs.New(), &git.CloneOptions{
|
||||
URL: tmpDirWithInitialRepository.baseRepository.fileSystem.Root(),
|
||||
})
|
||||
|
|
@ -91,7 +91,7 @@ func TestIfCurrentBranchIsDifferent(t *testing.T) {
|
|||
|
||||
func TestCommandRepositoryDoesNotExists(t *testing.T) {
|
||||
|
||||
tmpDirWithInitialRepository := getTestDirForTests()
|
||||
tmpDirWithInitialRepository := getTestSetup()
|
||||
fsForLocalRepo, storageForTestRepo := getFSForLocalRepo("noMatterValue", tmpDirWithInitialRepository.rootFS)
|
||||
|
||||
_, err := git.Clone(storageForTestRepo, fsForLocalRepo, &git.CloneOptions{
|
||||
|
|
@ -127,7 +127,7 @@ func TestCommandRepositoryDoesNotExists(t *testing.T) {
|
|||
|
||||
func TestCommandRepositoryNoRemoteBranch(t *testing.T) {
|
||||
|
||||
tmpDirWithInitialRepository := getTestDirForTests()
|
||||
tmpDirWithInitialRepository := getTestSetup()
|
||||
dirNameForLocalRepository := "testRepo"
|
||||
fsForLocalRepo, storageForTestRepo := getFSForLocalRepo(dirNameForLocalRepository, tmpDirWithInitialRepository.rootFS)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue