2014-08-22 07:31:03 +00:00
|
|
|
package dirwatch
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2018-01-06 05:53:40 +00:00
|
|
|
|
|
|
|
"github.com/stretchr/testify/require"
|
2014-08-22 07:31:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestDirwatch(t *testing.T) {
|
2022-02-02 07:26:46 +00:00
|
|
|
tempDirName := t.TempDir()
|
2014-12-03 18:10:29 +00:00
|
|
|
t.Logf("tempdir: %q", tempDirName)
|
2014-08-22 07:31:03 +00:00
|
|
|
dw, err := New(tempDirName)
|
2018-01-06 05:53:40 +00:00
|
|
|
require.NoError(t, err)
|
2014-12-03 18:10:29 +00:00
|
|
|
defer dw.Close()
|
2014-08-22 07:31:03 +00:00
|
|
|
}
|