| 1 | package temporalscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/temporal`/ |
| 2 | |
| 3 | import ( |
| 4 | "stringsscip-go gomod github.com/golang/go/src go1.25.0 strings/" |
| 5 | "testingscip-go gomod github.com/golang/go/src go1.25.0 testing/" |
| 6 | |
| 7 | "github.com/go-git/go-billy/v6/memfsscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/memfs`/" |
| 8 | "github.com/stretchr/testify/assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/" |
| 9 | "github.com/stretchr/testify/requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/" |
| 10 | ) |
| 11 | |
| 12 | func TestTempFileDefaultPathscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/temporal`/TestTempFileDefaultPath().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 13 | fs := Newscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/helper/temporal`/New().(memfsscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/memfs`/.Newscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6/memfs`/New().(), "foo") |
| 14 | f, err := fs.TempFilescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/TempFile#TempFile.("", "bar") |
| 15 | |
| 16 | requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/.NoErrorscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/NoError().(t, err) |
| 17 | requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/.NoErrorscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/NoError().(t, f.Closescip-go gomod github.com/golang/go/src go1.25.0 `io/fs`/File#Close().()) |
| 18 | |
| 19 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/True().(t, stringsscip-go gomod github.com/golang/go/src go1.25.0 strings/.HasPrefixscip-go gomod github.com/golang/go/src go1.25.0 strings/HasPrefix().(f.Namescip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/File#Name.(), fs.Joinscip-go gomod github.com/go-git/go-billy/v6 . `github.com/go-git/go-billy/v6`/Basic#Join.("foo", "bar"))) |
| 20 | } |