Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 6.9% on proxy.golang.org
Top 1.4% dependent packages on proxy.golang.org
Top 4.7% dependent repos on proxy.golang.org

proxy.golang.org : github.com/as/etch

Package etch provides a simple facility to write graphical regression tests. The Assertf function provides the common case functionality. Provide it the test variable, along the image you have and want, and it will fail your case if want != have. Optionally, provide a filename to store the graphical difference as an uncompressed PNG if the test fails. The Extra data in the image (have but don't want) is represented in Red The Missing data (want, but dont have) is represented in Blue These can be changed by modifying Extra and Missing package variables To simplify the package, the alpha channel is ignored. A color triplet is equal to another if it's R,G,B values are identical. The foreground variable, fg, is what to paint on the delta image if two pixels match The background variable, BG, is the common background color between two images If two pixels at the same (x,y) coordinate don't match, the ambiguity is resolved by comparing the image you have's color value at that coordinate to the background color. If the color matches, the pixel you have is missing. Otherwise, it's extra. This may seem confusing, so a worked example is made available in the README

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/as/etch
Keywords: automated, go, graphical, png, regression, tests
License: BSD-3-Clause
Latest release: over 6 years ago
First release: over 6 years ago
Namespace: github.com/as
Dependent packages: 18
Dependent repositories: 1
Stars: 10 on GitHub
Forks: 2 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 20 days ago

    Loading...
    Readme
    Loading...