Documentation
¶
Overview ¶
Package document provides common utilities for performing comparison between documents produced during testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanContents ¶
CleanContents removes font 'IDs' and other PDF/PS metadata to ensure a stable diff.
func CompareFileContents ¶
CompareFileContents compares the string contents given by output and golden and returns an error if there are any differences. If there are any differences between the given file contents then the results of the diff are written to diffPath.
func CompareFiles ¶
CompareFiles loads the contents of the given output and golden files and compares them for differences. If there are any differences between the two files then an error will be returned and the result of the diff are written to diffPath.
Types ¶
This section is empty.