HomeUniDoc
...

Package testhelper

Overview ▾

func CompareGoldenXML

func CompareGoldenXML(t *testing.T, expectedFn string, got []byte)

func CompareGoldenZip

func CompareGoldenZip(t *testing.T, expectedFn string, got []byte)

func CompareGoldenZipFilesOnly

func CompareGoldenZipFilesOnly(t *testing.T, expectedFn string, got []byte)

func CompareZip

func CompareZip(t *testing.T, expectedFn string, got []byte, cmpFileContents bool)

func ValidateDocument

func ValidateDocument(file string) (bool, error)

ValidateDocument validates the document using the openxml-validator.

type ValidationResult

ValidationResult is a struct that holds the result of the validation.

type ValidationResult struct {
    File   string `json:"file"`
    Result bool   `json:"result"`
    Note   string `json:"note"`
}