Add test for get customized types
This commit is contained in:
parent
3acabdaf26
commit
a7809284a6
|
@ -1012,4 +1012,12 @@ func TestGetBytesVars(t *testing.T) {
|
||||||
assert.True(t, has)
|
assert.True(t, has)
|
||||||
assert.EqualValues(t, []byte("bytes1-1"), gbv.Bytes1)
|
assert.EqualValues(t, []byte("bytes1-1"), gbv.Bytes1)
|
||||||
assert.EqualValues(t, []byte("bytes2-2"), gbv.Bytes2)
|
assert.EqualValues(t, []byte("bytes2-2"), gbv.Bytes2)
|
||||||
|
|
||||||
|
type MyID int64
|
||||||
|
var myID MyID
|
||||||
|
|
||||||
|
has, err = testEngine.Table("get_bytes_vars").Get(&myID)
|
||||||
|
assert.NoError(t, err)
|
||||||
|
assert.True(t, has)
|
||||||
|
assert.EqualValues(t, gbv.Id, myID)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue