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

Function TestAlternatesWithBoundOS

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

Source from the content-addressed store, hash-verified

853}
854
855func TestAlternatesWithBoundOS(t *testing.T) {
856 // Create a new dotgit object with a specific FS for alternates.
857 altFS := osfs.New(t.TempDir(), osfs.WithBoundOS())
858 dotFS, _ := altFS.Chroot("repo2")
859
860 testAlternates(t, dotFS, altFS)
861}
862
863func testAlternates(t *testing.T, dotFS, altFS billy.Filesystem) {
864 tests := []struct {

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…