feat: add file helper

This commit is contained in:
Tomas Aparicio 2015-04-06 00:23:25 +02:00
parent ef10d7d7ec
commit 37dd5f1d27
3 changed files with 42 additions and 2 deletions

View file

@ -3,12 +3,11 @@ package bimg
import (
"io/ioutil"
"os"
"path"
"testing"
)
func TestImageResize(t *testing.T) {
data, _ := os.Open(path.Join("fixtures/test.jpg"))
data, _ := os.Open("fixtures/test.jpg")
buf, err := ioutil.ReadAll(data)
image := NewImage(buf)