(info fs.FileInfo)
| 212 | } |
| 213 | |
| 214 | func 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 | |
| 221 | func prepareTestContext(t *testing.T) *TestContext { |
| 222 | id := strconv.FormatInt(time.Now().UnixNano()/1000000, 10) |
no outgoing calls
no test coverage detected