From d51a8d74b25e9e8b342e0a620c8afdfe155c3e09 Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Sun, 11 Oct 2015 07:27:08 -0400 Subject: Include catalog sort and creation date assignment so that tests of contributed packages can be run --- contrib/barcode/barcode_test.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'contrib/barcode') diff --git a/contrib/barcode/barcode_test.go b/contrib/barcode/barcode_test.go index c12ff12..86aafcc 100644 --- a/contrib/barcode/barcode_test.go +++ b/contrib/barcode/barcode_test.go @@ -1,6 +1,8 @@ package barcode_test import ( + "time" + "github.com/boombuler/barcode/code128" "github.com/boombuler/barcode/qr" "github.com/jung-kurt/gofpdf" @@ -8,6 +10,11 @@ import ( "github.com/jung-kurt/gofpdf/internal/example" ) +func init() { + gofpdf.SetDefaultCatalogSort(true) + gofpdf.SetDefaultCreationDate(time.Date(2000, 1, 1, 0, 0, 0, 0, time.UTC)) +} + func createPdf() (pdf *gofpdf.Fpdf) { pdf = gofpdf.New("L", "mm", "A4", "") pdf.SetFont("Helvetica", "", 12) -- cgit v1.2.1-24-ge1ad