Test: util / filesystem

This commit is contained in:
HFO4
2019-12-05 19:01:51 +08:00
parent 06bcb3d6eb
commit 5df8f688d1
8 changed files with 322 additions and 0 deletions

12
pkg/util/io_test.go Normal file
View File

@ -0,0 +1,12 @@
package util
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestExists(t *testing.T) {
asserts := assert.New(t)
asserts.True(Exists("io_test.go"))
asserts.False(Exists("io_test.js"))
}