pdqhash-go

git clone git://archive.git.mtrnord.blog/MTRNord/pdqhash-go.git
Log | Files | Refs | LICENSE

scanner_test.go (527B)


      1 package main
      2 
      3 import (
      4 	"testing"
      5 
      6 	"github.com/davidbyttow/govips/v2/vips"
      7 	"github.com/stretchr/testify/assert"
      8 )
      9 
     10 func TestProcessFolder(t *testing.T) {
     11 	vips.LoggingSettings(nil, vips.LogLevelMessage)
     12 	vips.Startup(&vips.Config{
     13 		ConcurrencyLevel: 0,
     14 		MaxCacheFiles:    5,
     15 		MaxCacheMem:      50 * 1024 * 1024,
     16 		MaxCacheSize:     100,
     17 		ReportLeaks:      false,
     18 		CacheTrace:       false,
     19 		CollectStats:     false,
     20 	})
     21 	defer vips.Shutdown()
     22 	err := processFolder("../test-images", true)
     23 	assert.ErrorIs(t, err, nil)
     24 }