Skip to content

Commit

Permalink
Testing fixes
Browse files Browse the repository at this point in the history
- Test name fix.
- Now use `TestDefaultByteOrder` from go-exif.
  • Loading branch information
dsoprea committed Jun 4, 2020
1 parent 6b8a152 commit 2ebde81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions media_parser_test.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package pngstructure

import (
"fmt"
"path"
"testing"
"fmt"

"io/ioutil"

"github.com/dsoprea/go-logging"
)

func TestParseFileStructure(t *testing.T) {
func TestPngMediaParser_ParseFile(t *testing.T) {
filepath := path.Join(assetsPath, "Selection_058.png")

pmp := NewPngMediaParser()
Expand Down
6 changes: 3 additions & 3 deletions png_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func TestChunkSlice_SetExif_Existing(t *testing.T) {
im := exif.NewIfdMappingWithStandard()
ti := exif.NewTagIndex()

ib := exif.NewIfdBuilder(im, ti, exifcommon.IfdStandardIfdIdentity, TestDefaultByteOrder)
ib := exif.NewIfdBuilder(im, ti, exifcommon.IfdStandardIfdIdentity, exifcommon.TestDefaultByteOrder)

err := ib.AddStandardWithName("ImageWidth", []uint32{11})
log.PanicIf(err)
Expand Down Expand Up @@ -300,7 +300,7 @@ func TestChunkSlice_SetExif_Chunk(t *testing.T) {
im := exif.NewIfdMappingWithStandard()
ti := exif.NewTagIndex()

ib := exif.NewIfdBuilder(im, ti, exifcommon.IfdStandardIfdIdentity, TestDefaultByteOrder)
ib := exif.NewIfdBuilder(im, ti, exifcommon.IfdStandardIfdIdentity, exifcommon.TestDefaultByteOrder)

err := ib.AddStandardWithName("ImageWidth", []uint32{11})
log.PanicIf(err)
Expand Down Expand Up @@ -353,7 +353,7 @@ func ExampleChunkSlice_SetExif() {
im := exif.NewIfdMappingWithStandard()
ti := exif.NewTagIndex()

ib := exif.NewIfdBuilder(im, ti, exifcommon.IfdStandardIfdIdentity, TestDefaultByteOrder)
ib := exif.NewIfdBuilder(im, ti, exifcommon.IfdStandardIfdIdentity, exifcommon.TestDefaultByteOrder)

err := ib.AddStandardWithName("ImageWidth", []uint32{11})
log.PanicIf(err)
Expand Down

0 comments on commit 2ebde81

Please sign in to comment.