mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-27 01:51:56 +08:00
Test: util / filesystem
This commit is contained in:
12
pkg/util/io_test.go
Normal file
12
pkg/util/io_test.go
Normal 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"))
|
||||
}
|
||||
Reference in New Issue
Block a user