MCPcopy Create free account
hub / github.com/libgit2/git2go / readReadme

Function readReadme

cherrypick_test.go:27–33  ·  view source on GitHub ↗
(t *testing.T, repo *Repository)

Source from the content-addressed store, hash-verified

25const content = "Herro, Worrd!"
26
27func readReadme(t *testing.T, repo *Repository) string {
28 bytes, err := ioutil.ReadFile(pathInRepo(repo, "README"))
29 if err != nil {
30 t.Fatal(err)
31 }
32 return string(bytes)
33}
34
35func TestCherrypick(t *testing.T) {
36 t.Parallel()

Callers 4

TestRevertFunction · 0.85
TestRevertCommitFunction · 0.85
TestCherrypickFunction · 0.85
TestCherrypickCommitFunction · 0.85

Calls 1

pathInRepoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…