mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-15 18:35:54 -07:00
feat: add Gopkg manifests, move fixtures to testdata, add vendor dependencies
This commit is contained in:
parent
ba1cf6a030
commit
127eb5cfbc
68 changed files with 534 additions and 68 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue