2836d25e1b
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
24 lines
325 B
Go
24 lines
325 B
Go
package thumb
|
|
|
|
import (
|
|
"bytes"
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
var logBuffer bytes.Buffer
|
|
|
|
func TestMain(m *testing.M) {
|
|
log = logrus.StandardLogger()
|
|
log.Out = &logBuffer
|
|
log.SetLevel(logrus.DebugLevel)
|
|
|
|
code := m.Run()
|
|
|
|
// remove temporary test files
|
|
os.RemoveAll("testdata/1")
|
|
|
|
os.Exit(code)
|
|
}
|