feat: add Gopkg manifests, move fixtures to testdata, add vendor dependencies

This commit is contained in:
Tomas Aparicio 2017-10-30 09:41:13 +01:00
parent ba1cf6a030
commit 127eb5cfbc
68 changed files with 534 additions and 68 deletions

View file

@ -5,7 +5,7 @@ import (
)
func TestRead(t *testing.T) {
buf, err := Read("fixtures/test.jpg")
buf, err := Read("testdata/test.jpg")
if err != nil {
t.Errorf("Cannot read the image: %#v", err)
@ -21,7 +21,7 @@ func TestRead(t *testing.T) {
}
func TestWrite(t *testing.T) {
buf, err := Read("fixtures/test.jpg")
buf, err := Read("testdata/test.jpg")
if err != nil {
t.Errorf("Cannot read the image: %#v", err)
@ -31,7 +31,7 @@ func TestWrite(t *testing.T) {
t.Fatal("Empty buffer")
}
err = Write("fixtures/test_write_out.jpg", buf)
err = Write("testdata/test_write_out.jpg", buf)
if err != nil {
t.Fatalf("Cannot write the file: %#v", err)
}