package msoffice_test import ( "log/slog" "os" "testing" "git.jmbit.de/jmb/scanfile/server/internal/processing/msoffice" "github.com/jackc/pgx/v5/pgtype" "github.com/spf13/viper" ) func TestOleVba(t *testing.T) { slog.SetDefault(slog.New(slog.NewTextHandler(os.Stderr, &slog.HandlerOptions{Level: slog.LevelDebug}))) viper.Set("processing.oleurl", "http://localhost:5000") var fileid pgtype.UUID fileid.Scan("cf645d68-fc5b-4cba-8940-4ccce437e354") t.Log(fileid) resp, err := msoffice.OleVBAScan(fileid) if err != nil { t.FailNow() } t.Log(resp) }