summaryrefslogtreecommitdiff
path: root/index_test.go
diff options
context:
space:
mode:
authorVicent Marti <[email protected]>2013-04-16 23:18:35 +0200
committerVicent Marti <[email protected]>2013-04-16 23:18:35 +0200
commit7292cafac2d2c4462f3bc0b850e702d6d87f629e (patch)
tree9179ef3ed0028099cf11d4a1dc008355a8f92bcf /index_test.go
parentd190d8a6b3717402744902d060be57195f27d604 (diff)
Add @carlosmn's tests
Diffstat (limited to 'index_test.go')
-rw-r--r--index_test.go15
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())