16 lines
278 B
Go
16 lines
278 B
Go
package xfs
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/yaoapp/xiang/config"
|
|
)
|
|
|
|
func TestOSFsMustMkdirAll(t *testing.T) {
|
|
fs := New(config.Conf.Source)
|
|
assert.NotPanics(t, func() {
|
|
fs.MustMkdirAll("/.tmp/unit-test/dir", os.ModePerm)
|
|
})
|
|
}
|