2023-06-06 18:05:30 +03:00
|
|
|
package folders
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/ManyakRus/starter/micro"
|
|
|
|
|
"testing"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func TestFindFolders(t *testing.T) {
|
|
|
|
|
//dir := `/home/user/GolandProjects/!sanek/image_packages/`
|
|
|
|
|
dir := micro.ProgramDir()
|
2024-03-14 11:35:25 +03:00
|
|
|
Otvet := FindFoldersTree(dir, true, false, false, []string{"vendor"})
|
2023-07-20 15:54:11 +03:00
|
|
|
if Otvet == nil {
|
|
|
|
|
t.Log("TestFindFolders() error: Otvet = nil")
|
|
|
|
|
}
|
2023-06-06 18:05:30 +03:00
|
|
|
}
|
2024-10-22 15:00:07 +03:00
|
|
|
|
|
|
|
|
func TestFindFiles_FromDirectory(t *testing.T) {
|
|
|
|
|
|
|
|
|
|
_, err := FindFiles_FromDirectory(micro.ProgramDir(), "")
|
|
|
|
|
if err != nil {
|
|
|
|
|
t.Log("TestFindFiles_FromDirectory() error: ", err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|