(c *C)
| 34 | } |
| 35 | |
| 36 | func (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 | |
| 44 | func (s *TempFileSuite) TestRemoveTempFile(c *C) { |
| 45 | f, err := s.FS.TempFile("test-dir", "test-prefix") |