mirror of
https://github.com/Belphemur/CBZOptimizer.git
synced 2026-07-21 19:05:39 +02:00
fix(memory): use staging folder to avoid keeping everything in memory
Co-authored-by: Belphemur <197810+Belphemur@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Fixes #203
This commit is contained in:
@@ -51,6 +51,13 @@ func TestOptimizeIntegration(t *testing.T) {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// Skip the "large" fixtures directory: it holds the Git LFS-tracked
|
||||
// fixture used exclusively by TestOptimizeIntegration_LargeFile,
|
||||
// which may only be a small LFS pointer file if the content wasn't
|
||||
// fetched, and shouldn't be exercised by this generic test.
|
||||
if info.IsDir() && filepath.Base(path) == "large" {
|
||||
return filepath.SkipDir
|
||||
}
|
||||
if !info.IsDir() {
|
||||
fileName := strings.ToLower(info.Name())
|
||||
if (strings.HasSuffix(fileName, ".cbz") || strings.HasSuffix(fileName, ".cbr")) && !strings.Contains(fileName, "converted") {
|
||||
|
||||
Reference in New Issue
Block a user