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

Function TestAlternatesWithBoundOS

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

Source from the content-addressed store, hash-verified

828}
829
830func TestAlternatesWithBoundOS(t *testing.T) {
831 // Create a new dotgit object with a specific FS for alternates.
832 altFS := osfs.New(t.TempDir(), osfs.WithBoundOS())
833 dotFS, _ := altFS.Chroot("repo2")
834
835 testAlternates(t, dotFS, altFS)
836}
837
838func testAlternates(t *testing.T, dotFS, altFS billy.Filesystem) {
839 tests := []struct {

Callers

nothing calls this directly

Calls 2

testAlternatesFunction · 0.85
ChrootMethod · 0.80

Tested by

no test coverage detected