MCPcopy Create free account
hub / github.com/go-git/go-git / TestAlternatesWithFS

Function TestAlternatesWithFS

storage/filesystem/dotgit/dotgit_test.go:822–828  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

820}
821
822func TestAlternatesWithFS(t *testing.T) {
823 // Create a new dotgit object with a specific FS for alternates.
824 altFS := osfs.New(t.TempDir())
825 dotFS, _ := altFS.Chroot("repo2")
826
827 testAlternates(t, dotFS, altFS)
828}
829
830func TestAlternatesWithBoundOS(t *testing.T) {
831 // Create a new dotgit object with a specific FS for alternates.

Callers

nothing calls this directly

Calls 2

testAlternatesFunction · 0.85
ChrootMethod · 0.80

Tested by

no test coverage detected