// TestEmptyDir checks that IsEmpty is true when an empty file is read.
TestEmptyDir checks that IsEmpty is true when an empty file is read.
// TestEmptyDir checks that IsEmpty is true when an empty file is read .
func TestEmptyDir(t *testing.T) {
	tempDir := t.TempDir()
	browser, err := NewFileBrowser(tempDir, imageExtensions)
	if err != nil {
		t.Fatalf(`err = %v, want nil`, err)
	}
	if !browser.IsEmpty() {
		t.Errorf(`IsEmpty() = false, want true`)
	}
}
func TestEmptyDir ( t * testing . T ) { tempDir := t . TempDir ( ) browser , err := NewFileBrowser ( tempDir , imageExtensions ) if err != nil { t . Fatalf ( `err = %v, want nil` , err ) } if ! browser . IsEmpty ( ) { t . Errorf ( `IsEmpty() = false, want true` ) } }
TestEmptyDir checks that IsEmpty is true when an empty file is read.
TestEmptyDir checks that IsEmpty is true when an empty file is read .