| 1 |
package app |
| 2 |
|
| 3 |
import ( |
| 4 |
"testing" |
| 5 |
|
| 6 |
"github.com/isacikgoz/gitbatch/internal/git" |
| 7 |
"github.com/stretchr/testify/require" |
| 8 |
) |
| 9 |
|
| 10 |
func TestQuick(t *testing.T) { |
| •11 |
// Test requires internet access |
| 12 |
t.Skip() |
| 13 |
th := git.InitTestRepositoryFromLocal(t) |
| 14 |
defer th.CleanUp(t) |
| 15 |
|
| 16 |
var tests = []struct { |
| 17 |
inp1 []string |
| 18 |
inp2 string |
| 19 |
}{ |
| 20 |
{ |
| 21 |
[]string{th.DirtyRepoPath()}, |
| 22 |
"fetch", |
| 23 |
}, { |
| 24 |
[]string{th.DirtyRepoPath()}, |
| 25 |
"pull", |
| 26 |
}, |
| 27 |
} |
| 28 |
for _, test := range tests { |
| 29 |
err := quick(test.inp1, test.inp2) |
| 30 |
require.NoError(t, err) |
| 31 |
} |
| 32 |
} |