Very nice looking tests!

Signed-off-by: Kris Nóva <kris@nivenly.com>
This commit is contained in:
Kris Nóva 2021-02-09 16:00:02 -08:00
parent 3b41c9dd5f
commit c1a45bf8e3
149 changed files with 1241 additions and 443 deletions

View file

@ -5,7 +5,7 @@ import (
"fmt"
"strings"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
)
var (

View file

@ -7,7 +7,7 @@ import (
"encoding/binary"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
)
var (

View file

@ -7,7 +7,7 @@ import (
"encoding/binary"
"io/ioutil"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
)
var (

View file

@ -10,7 +10,7 @@ import (
"encoding/binary"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
)
var (

View file

@ -8,7 +8,7 @@ import (
"strings"
"time"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
)
var (

View file

@ -6,7 +6,7 @@ import (
"encoding/binary"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
)
var (

View file

@ -8,7 +8,7 @@ import (
"encoding/binary"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
)
var (

View file

@ -3,8 +3,8 @@ package exif
import (
"io"
log "github.com/dsoprea/go-logging"
rifs "github.com/dsoprea/go-utility/v2/filesystem"
"github.com/dsoprea/go-logging"
"github.com/dsoprea/go-utility/v2/filesystem"
)
type ExifBlobSeeker interface {

View file

@ -11,9 +11,9 @@ import (
"encoding/binary"
"io/ioutil"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
exifcommon "github.com/dsoprea/go-exif/v3/common"
"github.com/dsoprea/go-exif/v3/common"
)
const (

View file

@ -5,10 +5,10 @@ import (
"fmt"
"time"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
"github.com/golang/geo/s2"
exifcommon "github.com/dsoprea/go-exif/v3/common"
"github.com/dsoprea/go-exif/v3/common"
)
var (

View file

@ -12,10 +12,10 @@ import (
"encoding/binary"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
exifcommon "github.com/dsoprea/go-exif/v3/common"
exifundefined "github.com/dsoprea/go-exif/v3/undefined"
"github.com/dsoprea/go-exif/v3/common"
"github.com/dsoprea/go-exif/v3/undefined"
)
var (

View file

@ -7,8 +7,9 @@ import (
"encoding/binary"
exifcommon "github.com/dsoprea/go-exif/v3/common"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
"github.com/dsoprea/go-exif/v3/common"
)
const (

View file

@ -11,10 +11,10 @@ import (
"encoding/binary"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
exifcommon "github.com/dsoprea/go-exif/v3/common"
exifundefined "github.com/dsoprea/go-exif/v3/undefined"
"github.com/dsoprea/go-exif/v3/common"
"github.com/dsoprea/go-exif/v3/undefined"
)
var (

View file

@ -6,10 +6,10 @@ import (
"encoding/binary"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
exifcommon "github.com/dsoprea/go-exif/v3/common"
exifundefined "github.com/dsoprea/go-exif/v3/undefined"
"github.com/dsoprea/go-exif/v3/common"
"github.com/dsoprea/go-exif/v3/undefined"
)
var (

View file

@ -4,10 +4,10 @@ import (
"fmt"
"sync"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
"gopkg.in/yaml.v2"
exifcommon "github.com/dsoprea/go-exif/v3/common"
"github.com/dsoprea/go-exif/v3/common"
)
const (

View file

@ -7,9 +7,9 @@ import (
"io/ioutil"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
exifcommon "github.com/dsoprea/go-exif/v3/common"
"github.com/dsoprea/go-exif/v3/common"
)
var (

View file

@ -3,9 +3,9 @@ package exifundefined
import (
"encoding/binary"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
exifcommon "github.com/dsoprea/go-exif/v3/common"
"github.com/dsoprea/go-exif/v3/common"
)
// Encode encodes the given encodeable undefined value to bytes.

View file

@ -6,9 +6,9 @@ import (
"encoding/binary"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
exifcommon "github.com/dsoprea/go-exif/v3/common"
"github.com/dsoprea/go-exif/v3/common"
)
type Tag8828Oecf struct {

View file

@ -3,9 +3,9 @@ package exifundefined
import (
"encoding/binary"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
exifcommon "github.com/dsoprea/go-exif/v3/common"
"github.com/dsoprea/go-exif/v3/common"
)
type Tag9000ExifVersion struct {

View file

@ -6,8 +6,9 @@ import (
"encoding/binary"
exifcommon "github.com/dsoprea/go-exif/v3/common"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
"github.com/dsoprea/go-exif/v3/common"
)
const (

View file

@ -7,9 +7,9 @@ import (
"crypto/sha1"
"encoding/binary"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
exifcommon "github.com/dsoprea/go-exif/v3/common"
"github.com/dsoprea/go-exif/v3/common"
)
type Tag927CMakerNote struct {

View file

@ -6,9 +6,9 @@ import (
"encoding/binary"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
exifcommon "github.com/dsoprea/go-exif/v3/common"
"github.com/dsoprea/go-exif/v3/common"
)
var (

View file

@ -3,8 +3,9 @@ package exifundefined
import (
"encoding/binary"
exifcommon "github.com/dsoprea/go-exif/v3/common"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
"github.com/dsoprea/go-exif/v3/common"
)
type TagA000FlashpixVersion struct {

View file

@ -6,9 +6,9 @@ import (
"encoding/binary"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
exifcommon "github.com/dsoprea/go-exif/v3/common"
"github.com/dsoprea/go-exif/v3/common"
)
type TagA20CSpatialFrequencyResponse struct {

View file

@ -5,8 +5,9 @@ import (
"encoding/binary"
exifcommon "github.com/dsoprea/go-exif/v3/common"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
"github.com/dsoprea/go-exif/v3/common"
)
type TagExifA300FileSource uint32

View file

@ -5,9 +5,9 @@ import (
"encoding/binary"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
exifcommon "github.com/dsoprea/go-exif/v3/common"
"github.com/dsoprea/go-exif/v3/common"
)
type TagExifA301SceneType uint32

View file

@ -6,8 +6,9 @@ import (
"encoding/binary"
exifcommon "github.com/dsoprea/go-exif/v3/common"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
"github.com/dsoprea/go-exif/v3/common"
)
type TagA302CfaPattern struct {

View file

@ -3,9 +3,9 @@ package exifundefined
import (
"encoding/binary"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
exifcommon "github.com/dsoprea/go-exif/v3/common"
"github.com/dsoprea/go-exif/v3/common"
)
type Tag0002InteropVersion struct {

View file

@ -3,8 +3,9 @@ package exifundefined
import (
"encoding/binary"
exifcommon "github.com/dsoprea/go-exif/v3/common"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
"github.com/dsoprea/go-exif/v3/common"
)
type Tag001BGPSProcessingMethod struct {

View file

@ -3,9 +3,9 @@ package exifundefined
import (
"encoding/binary"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
exifcommon "github.com/dsoprea/go-exif/v3/common"
"github.com/dsoprea/go-exif/v3/common"
)
type Tag001CGPSAreaInformation struct {

View file

@ -1,6 +1,8 @@
package exifundefined
import log "github.com/dsoprea/go-logging"
import (
"github.com/dsoprea/go-logging"
)
// UndefinedTagHandle defines one undefined-type tag with a corresponding
// decoder.

View file

@ -5,7 +5,7 @@ import (
"encoding/binary"
exifcommon "github.com/dsoprea/go-exif/v3/common"
"github.com/dsoprea/go-exif/v3/common"
)
const (

View file

@ -4,10 +4,10 @@ import (
"fmt"
"math"
log "github.com/dsoprea/go-logging"
"github.com/dsoprea/go-logging"
exifcommon "github.com/dsoprea/go-exif/v3/common"
exifundefined "github.com/dsoprea/go-exif/v3/undefined"
"github.com/dsoprea/go-exif/v3/common"
"github.com/dsoprea/go-exif/v3/undefined"
)
var (