From 7292cafac2d2c4462f3bc0b850e702d6d87f629e Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Tue, 16 Apr 2013 23:18:35 +0200 Subject: Add @carlosmn's tests --- index_test.go | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'index_test.go') 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()) -- cgit v1.2.3