MCPcopy Index your code
hub / github.com/go-git/go-git / TestAlternatesWithFS

Function TestAlternatesWithFS

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

Source from the content-addressed store, hash-verified

845}
846
847func TestAlternatesWithFS(t *testing.T) {
848 // Create a new dotgit object with a specific FS for alternates.
849 altFS := osfs.New(t.TempDir())
850 dotFS, _ := altFS.Chroot("repo2")
851
852 testAlternates(t, dotFS, altFS)
853}
854
855func TestAlternatesWithBoundOS(t *testing.T) {
856 // Create a new dotgit object with a specific FS for alternates.

Callers

nothing calls this directly

Calls 2

testAlternatesFunction · 0.85
ChrootMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…