Documentation
¶
Index ¶
- Variables
- func CombinePNGFiles(file1, file2 string) (bool, error)
- func CompareGoldenXML(t *_cf.T, expectedFn string, got []byte)
- func CompareGoldenZip(t *_cf.T, expectedFn string, got []byte)
- func CompareGoldenZipFilesOnly(t *_cf.T, expectedFn string, got []byte)
- func CompareImages(img1, img2 _bb.Image) (bool, error)
- func ComparePNGFiles(file1, file2 string) (bool, error)
- func CompareZip(t *_cf.T, expectedFn string, got []byte, cmpFileContents bool)
- func CopyFile(src, dst string) error
- func CreatePNGDiff(src, dst string) (bool, string, float64, float64, error)
- func HashFile(file string) (string, error)
- func ReadPNG(file string) (_bb.Image, error)
- func RenderPDFToPNGs(pdfPath string, dpi int, outpathTpl string) error
- func RunRenderOfficeTest(t *_cf.T, pdfPath, outputDir, baselineRenderPath string, saveBaseline bool, ...)
- func RunRenderTest(t *_cf.T, pdfPath, outputDir, baselineRenderPath string, saveBaseline bool, ...)
- func ValidateDocument(file string) (bool, error)
- type ReferenceEntry
- type ReferenceFile
- type ReferenceMap
- func (_acd *ReferenceMap) Copy() *ReferenceMap
- func (_eb *ReferenceMap) Keys() (_dcb []string)
- func (_def *ReferenceMap) Len() int
- func (_beg *ReferenceMap) MarshalJSON() ([]byte, error)
- func (_fff *ReferenceMap) Read(key string) (ReferenceEntry, bool)
- func (_ebd *ReferenceMap) UnmarshalJSON(data []byte) error
- func (_dgce *ReferenceMap) Write(key string, entry ReferenceEntry)
- type ValidationResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRenderNotSupported = _adg.New("\u0072\u0065\u006e\u0064\u0065r\u0069\u006e\u0067\u0020\u0050\u0044\u0046\u0020\u0066\u0069\u006c\u0065\u0073 \u0069\u0073\u0020\u006e\u006f\u0074\u0020\u0073\u0075\u0070\u0070\u006f\u0072\u0074\u0065\u0064\u0020\u006f\u006e\u0020\u0074\u0068\u0069\u0073\u0020\u0073\u0079\u0073\u0074\u0065m") ErrImageSizeNotMatch = _adg.New("\u0069\u006d\u0061ge\u0020\u0073\u0069\u007a\u0065\u0073\u0020\u0064\u006f\u006e\u0027\u0074\u0020\u006d\u0061\u0074\u0063\u0068") )
Functions ¶
func CombinePNGFiles ¶
func ComparePNGFiles ¶
func RunRenderOfficeTest ¶
func RunRenderOfficeTest(t *_cf.T, pdfPath, outputDir, baselineRenderPath string, saveBaseline bool, currentHashMap *ReferenceMap, refFile *ReferenceFile, postfix string)
func RunRenderTest ¶
func RunRenderTest(t *_cf.T, pdfPath, outputDir, baselineRenderPath string, saveBaseline bool, currentHashMap *ReferenceMap, refFile *ReferenceFile)
func ValidateDocument ¶
Types ¶
type ReferenceEntry ¶
type ReferenceFile ¶
type ReferenceFile struct {
Timestamp _fd.Time `json:"timestamp"`
Map *ReferenceMap `json:"map,omitempty"`
// contains filtered or unexported fields
}
func (*ReferenceFile) Update ¶
func (_dabc *ReferenceFile) Update(currentMap *ReferenceMap) error
type ReferenceMap ¶
func (*ReferenceMap) Copy ¶
func (_acd *ReferenceMap) Copy() *ReferenceMap
func (*ReferenceMap) Keys ¶
func (_eb *ReferenceMap) Keys() (_dcb []string)
func (*ReferenceMap) Len ¶
func (_def *ReferenceMap) Len() int
func (*ReferenceMap) MarshalJSON ¶
func (_beg *ReferenceMap) MarshalJSON() ([]byte, error)
func (*ReferenceMap) Read ¶
func (_fff *ReferenceMap) Read(key string) (ReferenceEntry, bool)
func (*ReferenceMap) UnmarshalJSON ¶
func (_ebd *ReferenceMap) UnmarshalJSON(data []byte) error
func (*ReferenceMap) Write ¶
func (_dgce *ReferenceMap) Write(key string, entry ReferenceEntry)
type ValidationResult ¶
Click to show internal directories.
Click to hide internal directories.