diff options
| author | Vicent Martà <[email protected]> | 2013-06-13 10:15:36 -0700 |
|---|---|---|
| committer | Vicent Martà <[email protected]> | 2013-06-13 10:15:36 -0700 |
| commit | 62f65d071d0671fb53aaca54a2d59a636267c2b0 (patch) | |
| tree | e03dd9af8fb0e7287abfc0597c1a325013ee0073 /index_test.go | |
| parent | 01d1a5c5d5fede6f054e50a1154ff747e3879cf8 (diff) | |
| parent | 5766c4accf913bb4a98189177261e1db939397e2 (diff) | |
Merge pull request #13 from libgit2/polymorphism-take-2
My take on polymorphism
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()) |
