Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func TestGetFiles(t *testing.T) {
- dirPath := "/home/xa0s/Downloads/Movies/The_Boys/Season_1"
- files, err := getFiles(dirPath)
- if err != nil {
- t.Fatal(err)
- }
- expectedFilesCount := 8
- if len(files) != expectedFilesCount {
- t.Errorf("Incorrect number of files. Expected %d, got: %d", expectedFilesCount, len(files))
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement