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

Method TestTempFileFullWithPath

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

Source from the content-addressed store, hash-verified

34}
35
36func (s *TempFileSuite) TestTempFileFullWithPath(c *C) {
37 f, err := s.FS.TempFile("/foo", "bar")
38 c.Assert(err, IsNil)
39 c.Assert(f.Close(), IsNil)
40
41 c.Assert(strings.Index(f.Name(), s.FS.Join("foo", "bar")), Not(Equals), -1)
42}
43
44func (s *TempFileSuite) TestRemoveTempFile(c *C) {
45 f, err := s.FS.TempFile("test-dir", "test-prefix")

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