mirror of
https://github.com/dsoprea/go-exif.git
synced 2025-05-31 11:41:57 +00:00
undefined: Add three suites of tests
This commit is contained in:
parent
4fd78f1397
commit
a52d1de840
@ -50,11 +50,15 @@ func (Tag9286UserComment) EncoderName() string {
|
|||||||
func (uc Tag9286UserComment) String() string {
|
func (uc Tag9286UserComment) String() string {
|
||||||
var valuePhrase string
|
var valuePhrase string
|
||||||
|
|
||||||
|
if uc.EncodingType == TagUndefinedType_9286_UserComment_Encoding_ASCII {
|
||||||
|
return fmt.Sprintf("[ASCII] %s", string(uc.EncodingBytes))
|
||||||
|
} else {
|
||||||
if len(uc.EncodingBytes) <= 8 {
|
if len(uc.EncodingBytes) <= 8 {
|
||||||
valuePhrase = fmt.Sprintf("%v", uc.EncodingBytes)
|
valuePhrase = fmt.Sprintf("%v", uc.EncodingBytes)
|
||||||
} else {
|
} else {
|
||||||
valuePhrase = fmt.Sprintf("%v...", uc.EncodingBytes[:8])
|
valuePhrase = fmt.Sprintf("%v...", uc.EncodingBytes[:8])
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return fmt.Sprintf("UserComment<SIZE=(%d) ENCODING=[%s] V=%v LEN=(%d)>", len(uc.EncodingBytes), TagUndefinedType_9286_UserComment_Encoding_Names[uc.EncodingType], valuePhrase, len(uc.EncodingBytes))
|
return fmt.Sprintf("UserComment<SIZE=(%d) ENCODING=[%s] V=%v LEN=(%d)>", len(uc.EncodingBytes), TagUndefinedType_9286_UserComment_Encoding_Names[uc.EncodingType], valuePhrase, len(uc.EncodingBytes))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user