@@ -167,18 +167,20 @@ type PointerMap struct {
167
167
}
168
168
169
169
type TestPointerType struct {
170
- Array * []uint `maxminddb:"array"`
171
- Boolean * bool `maxminddb:"boolean"`
172
- Bytes * []byte `maxminddb:"bytes"`
173
- Double * float64 `maxminddb:"double"`
174
- Float * float32 `maxminddb:"float"`
175
- Int32 * int32 `maxminddb:"int32"`
176
- Map * PointerMap `maxminddb:"map"`
177
- Uint16 * uint16 `maxminddb:"uint16"`
178
- Uint32 * uint32 `maxminddb:"uint32"`
179
- Uint64 * uint64 `maxminddb:"uint64"`
180
- Uint128 * big.Int `maxminddb:"uint128"`
181
- Utf8String * string `maxminddb:"utf8_string"`
170
+ Array * []uint `maxminddb:"array"`
171
+ Boolean * bool `maxminddb:"boolean"`
172
+ Bytes * []byte `maxminddb:"bytes"`
173
+ Double * float64 `maxminddb:"double"`
174
+ Float * float32 `maxminddb:"float"`
175
+ Int32 * int32 `maxminddb:"int32"`
176
+ Map * PointerMap `maxminddb:"map"`
177
+ Uint16 * uint16 `maxminddb:"uint16"`
178
+ Uint32 * uint32 `maxminddb:"uint32"`
179
+
180
+ // Test for pointer to pointer
181
+ Uint64 * * uint64 `maxminddb:"uint64"`
182
+ Uint128 * big.Int `maxminddb:"uint128"`
183
+ Utf8String * string `maxminddb:"utf8_string"`
182
184
}
183
185
184
186
func (s * MySuite ) TestStructWithPointer (c * C ) {
@@ -206,7 +208,7 @@ func (s *MySuite) TestStructWithPointer(c *C) {
206
208
207
209
c .Assert (* result .Uint16 , Equals , uint16 (100 ))
208
210
c .Assert (* result .Uint32 , Equals , uint32 (268435456 ))
209
- c .Assert (* result .Uint64 , Equals , uint64 (1152921504606846976 ))
211
+ c .Assert (* * result .Uint64 , Equals , uint64 (1152921504606846976 ))
210
212
c .Assert (* result .Utf8String , Equals , "unicode! ☯ - ♫" )
211
213
bigInt := new (big.Int )
212
214
bigInt .SetString ("1329227995784915872903807060280344576" , 10 )
0 commit comments