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

Method TestTempFileWithPath

test/tempfile.go:28–34  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

26}
27
28func (s *TempFileSuite) TestTempFileWithPath(c *C) {
29 f, err := s.FS.TempFile("foo", "bar")
30 c.Assert(err, IsNil)
31 c.Assert(f.Close(), IsNil)
32
33 c.Assert(strings.HasPrefix(f.Name(), s.FS.Join("foo", "bar")), Equals, true)
34}
35
36func (s *TempFileSuite) TestTempFileFullWithPath(c *C) {
37 f, err := s.FS.TempFile("/foo", "bar")

Callers

nothing calls this directly

Calls 4

TempFileMethod · 0.65
NameMethod · 0.65
JoinMethod · 0.65
CloseMethod · 0.45

Tested by

no test coverage detected