Debian Codegraph @

fixtures_options.go

raw symbols SCIP
1 package fixturesscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6`/
2
3 import (
4 "github.com/go-git/go-billy/v6scip-go gomod github.com/go-git/go-billy/v6 v6.0.0-alpha.1 `github.com/go-git/go-billy/v6`/"
5 "github.com/go-git/go-billy/v6/osfsscip-go gomod github.com/go-git/go-billy/v6 v6.0.0-alpha.1 `github.com/go-git/go-billy/v6/osfs`/"
6 "github.com/go-git/go-git-fixtures/v6/internal/tgzscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6/internal/tgz`/"
7 )
8
9 type Optionscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6`/Option# func(*optionsscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6`/options#)
10
11 type optionsscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6`/options# struct {
12 fsFactoryscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6`/options#fsFactory. func() (billyscip-go gomod github.com/go-git/go-billy/v6 v6.0.0-alpha.1 `github.com/go-git/go-billy/v6`/.Filesystemscip-go gomod github.com/go-git/go-billy/v6 v6.0.0-alpha.1 `github.com/go-git/go-billy/v6`/Filesystem#, error)
13 }
14
15 func newOptionsscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6`/newOptions().() *optionsscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6`/options# {
16 return &optionsscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6`/options#{
17 fsFactoryscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6`/options#fsFactory.: tgzscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6/internal/tgz`/.MemFactoryscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6/internal/tgz`/MemFactory.,
18 }
19 }
20
21 // WithMemFS returns the option of using memfs for the fs created for Fixtures.
22 func WithMemFSscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6`/WithMemFS().() Optionscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6`/Option# {
23 return func(o *optionsscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6`/options#) {
24 o.fsFactoryscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6`/options#fsFactory. = tgzscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6/internal/tgz`/.MemFactoryscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6/internal/tgz`/MemFactory.
25 }
26 }
27
28 // WithTargetDir returns the option of using an OS-based filesystem based on a target dir.
29 // The target dir will be based on the name returned from dirName, which aligns with tempdir
30 // functions in different testing frameworks (e.g. t.TempDir, c.MkDir).
31 //
32 // The caller is responsible for removing the dir from disk. Therefore, it is recommended
33 // to delegate that to the testing framework:
34 //
35 // WithTargetDir(t.TempDir)
36 func WithTargetDirscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6`/WithTargetDir().(dirName func() string, opts ...osfsscip-go gomod github.com/go-git/go-billy/v6 v6.0.0-alpha.1 `github.com/go-git/go-billy/v6/osfs`/.Optionscip-go gomod github.com/go-git/go-billy/v6 v6.0.0-alpha.1 `github.com/go-git/go-billy/v6/osfs`/Option#) Optionscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6`/Option# {
37 return func(o *optionsscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6`/options#) {
38 o.fsFactoryscip-go gomod github.com/go-git/go-git-fixtures/v6 . `github.com/go-git/go-git-fixtures/v6`/options#fsFactory. = func() (billyscip-go gomod github.com/go-git/go-billy/v6 v6.0.0-alpha.1 `github.com/go-git/go-billy/v6`/.Filesystemscip-go gomod github.com/go-git/go-billy/v6 v6.0.0-alpha.1 `github.com/go-git/go-billy/v6`/Filesystem#, error) {
39 return osfsscip-go gomod github.com/go-git/go-billy/v6 v6.0.0-alpha.1 `github.com/go-git/go-billy/v6/osfs`/.Newscip-go gomod github.com/go-git/go-billy/v6 v6.0.0-alpha.1 `github.com/go-git/go-billy/v6/osfs`/New().(dirName(), opts...), nil
40 }
41 }
42 }