@@ -167,18 +167,20 @@ type PointerMap struct {
167167}
168168
169169type 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"`
182184}
183185
184186func (s * MySuite ) TestStructWithPointer (c * C ) {
@@ -206,7 +208,7 @@ func (s *MySuite) TestStructWithPointer(c *C) {
206208
207209 c .Assert (* result .Uint16 , Equals , uint16 (100 ))
208210 c .Assert (* result .Uint32 , Equals , uint32 (268435456 ))
209- c .Assert (* result .Uint64 , Equals , uint64 (1152921504606846976 ))
211+ c .Assert (* * result .Uint64 , Equals , uint64 (1152921504606846976 ))
210212 c .Assert (* result .Utf8String , Equals , "unicode! ☯ - ♫" )
211213 bigInt := new (big.Int )
212214 bigInt .SetString ("1329227995784915872903807060280344576" , 10 )
0 commit comments