github.com/rosedblabs/rosedb/v2@v2.3.7-0.20240423093736-a89ea823e5b9/utils/file_test.go (about) 1 package utils 2 3 import ( 4 "github.com/stretchr/testify/assert" 5 "os" 6 "testing" 7 ) 8 9 func TestDirSize(t *testing.T) { 10 dir, _ := os.Getwd() 11 dirSize, err := DirSize(dir) 12 assert.Nil(t, err) 13 assert.True(t, dirSize > 0) 14 }