testutil/fakegit/fakegit.go
Function New
has 62 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func New(c testing.TB, name string, files map[string]string, enforceLocalServer bool) *FakeGit {
c.Helper()
ctx := fakecontext.New(c, "", fakecontext.WithFiles(files))
defer ctx.Close()
curdir, err := os.Getwd()