diff options
| author | Vicent Marti <[email protected]> | 2013-04-16 23:18:35 +0200 |
|---|---|---|
| committer | Vicent Marti <[email protected]> | 2013-04-16 23:18:35 +0200 |
| commit | 7292cafac2d2c4462f3bc0b850e702d6d87f629e (patch) | |
| tree | 9179ef3ed0028099cf11d4a1dc008355a8f92bcf /index_test.go | |
| parent | d190d8a6b3717402744902d060be57195f27d604 (diff) | |
Add @carlosmn's tests
Diffstat (limited to 'index_test.go')
| -rw-r--r-- | index_test.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/index_test.go b/index_test.go index fe6fb87..9828d0f 100644 --- a/index_test.go +++ b/index_test.go @@ -4,23 +4,8 @@ import ( "os" "runtime" "testing" - "io/ioutil" ) -func createTestRepo(t *testing.T) *Repository { - // figure out where we can create the test repo - path, err := ioutil.TempDir("", "git2go") - checkFatal(t, err) - repo, err := InitRepository(path, false) - checkFatal(t, err) - - tmpfile := "README" - err = ioutil.WriteFile(path + "/" + tmpfile, []byte("foo\n"), 0644) - checkFatal(t, err) - - return repo -} - func TestCreateRepoAndStage(t *testing.T) { repo := createTestRepo(t) defer os.RemoveAll(repo.Workdir()) |
