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

Method TestRemoveTempFile

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

Source from the content-addressed store, hash-verified

42}
43
44func (s *TempFileSuite) TestRemoveTempFile(c *C) {
45 f, err := s.FS.TempFile("test-dir", "test-prefix")
46 c.Assert(err, IsNil)
47
48 fn := f.Name()
49 c.Assert(f.Close(), IsNil)
50 c.Assert(s.FS.Remove(fn), IsNil)
51}
52
53func (s *TempFileSuite) TestRenameTempFile(c *C) {
54 f, err := s.FS.TempFile("test-dir", "test-prefix")

Callers

nothing calls this directly

Calls 4

TempFileMethod · 0.65
NameMethod · 0.65
RemoveMethod · 0.65
CloseMethod · 0.45

Tested by

no test coverage detected