A Telegram Bot for collecting the photos of your children
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 lines
421 B

package main
import (
"io/ioutil"
"os"
"testing"
)
type TestCaseTempFile struct {
RootDir string
}
func createTempDir(t *testing.T) TestCaseTempFile {
tmp := os.TempDir()
dir, err := ioutil.TempDir(tmp, "unittest-*")
if err != nil {
t.Errorf("newTmpDir: ioutil.TempDir: %s", err)
}
return TestCaseTempFile{RootDir: dir}
}
func (tmp *TestCaseTempFile) cleanup(t *testing.T) {
//os.RemoveAll(tmp.RootDir)
}