MCPcopy Create free account
hub / github.com/bluekeyes/patch2pr / getGitMode

Function getGitMode

applier_test.go:214–219  ·  view source on GitHub ↗
(info fs.FileInfo)

Source from the content-addressed store, hash-verified

212}
213
214func getGitMode(info fs.FileInfo) string {
215 if info.Mode()&fs.ModeSymlink > 0 {
216 return "120000"
217 }
218 return fmt.Sprintf("100%o", info.Mode())
219}
220
221func prepareTestContext(t *testing.T) *TestContext {
222 id := strconv.FormatInt(time.Now().UnixNano()/1000000, 10)

Callers 2

assertPatchResultFunction · 0.85
createBranchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected