(t *testing.T)
| 59 | } |
| 60 | |
| 61 | func createTestRepo(t *testing.T) *Repository { |
| 62 | // figure out where we can create the test repo |
| 63 | path, err := ioutil.TempDir("", "git2go") |
| 64 | checkFatal(t, err) |
| 65 | repo, err := InitRepository(path, false) |
| 66 | checkFatal(t, err) |
| 67 | |
| 68 | tmpfile := "README" |
| 69 | err = ioutil.WriteFile(path+"/"+tmpfile, []byte("foo\n"), 0644) |
| 70 | |
| 71 | checkFatal(t, err) |
| 72 | |
| 73 | return repo |
| 74 | } |
| 75 | |
| 76 | func createBareTestRepo(t *testing.T) *Repository { |
| 77 | // figure out where we can create the test repo |
no test coverage detected
searching dependent graphs…