Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/oschwald/maxminddb-golang
/ functions
Functions
386 in github.com/oschwald/maxminddb-golang
⨍
Functions
386
◇
Types & classes
99
Function
TestNextValueOffsetSkipsPointerTokenOnly
(t *testing.T)
internal/decoder/data_decoder_test.go:271
Function
TestNonDatabase
(t *testing.T)
reader_test.go:958
Function
TestNonEmptyNilInterface
(t *testing.T)
reader_test.go:437
Function
TestOffsetReturnsValueStart
(t *testing.T)
internal/decoder/decoder_test.go:609
Function
TestOpenBytesAppliesReaderOptions
(t *testing.T)
reader_test.go:71
Function
TestOversizedPointerReturnsError
(t *testing.T)
internal/decoder/reflection_test.go:591
Function
TestPathBuilder
(t *testing.T)
internal/decoder/error_context_test.go:45
Function
TestPeekKind
(t *testing.T)
internal/decoder/decoder_test.go:526
Function
TestPeekKindWithPointer
TestPeekKindWithPointer tests that PeekKind correctly follows pointers to get the actual kind of the pointed-to value.
internal/decoder/decoder_test.go:594
Function
TestPointerStructFieldCaching
(t *testing.T)
internal/decoder/field_precedence_test.go:136
Function
TestPointerStructFieldCachingChecksDepth
(t *testing.T)
internal/decoder/field_precedence_test.go:172
Function
TestPointerToPointerChain
(t *testing.T)
internal/decoder/decoder_test.go:726
Function
TestPointers
(t *testing.T)
internal/decoder/reflection_test.go:567
Function
TestPointersInDecoder
(t *testing.T)
internal/decoder/decoder_test.go:450
Function
TestPreinitializedInterfaceFieldUsesUnmarshaler
(t *testing.T)
internal/decoder/nested_unmarshaler_test.go:378
Function
TestPreinitializedPointerToInterfaceFieldUsesUnmarshaler
(t *testing.T)
internal/decoder/nested_unmarshaler_test.go:671
Function
TestReadMapEarlyBreakAfterValueAdvancesPastMap
(t *testing.T)
internal/decoder/decoder_test.go:172
Function
TestReadMapEarlyBreakBeforeValueAdvancesPastMap
(t *testing.T)
internal/decoder/decoder_test.go:203
Function
TestReadNodePairBySizeRejectsShortBuffers
(t *testing.T)
bad_data_test.go:204
Function
TestReadSliceEarlyBreakAfterValueAdvancesPastSlice
(t *testing.T)
internal/decoder/decoder_test.go:261
Function
TestReadSliceEarlyBreakBeforeValueAdvancesPastSlice
(t *testing.T)
internal/decoder/decoder_test.go:289
Function
TestReader
(t *testing.T)
reader_test.go:24
Function
TestReaderBytes
(t *testing.T)
reader_test.go:47
Function
TestReaderLeaks
(t *testing.T)
reader_test.go:80
Function
TestRecursivePointerStructFieldCaching
(t *testing.T)
internal/decoder/field_precedence_test.go:161
Function
TestReflectUintFromMultipleSourceKinds
TestReflectUintFromMultipleSourceKinds covers the three KindUint* cases that tryFastDecodeTyped's reflect.Uint branch accepts for a plain `uint` field
internal/decoder/reflection_test.go:125
Function
TestReflectUintOverflowFallback
TestReflectUintOverflowFallback exercises the platform-width guard in tryFastDecodeTyped's reflect.Uint case: when the DB encodes a uint64 value that
internal/decoder/reflection_test.go:92
Function
TestResultDecodeAfterReaderClose
(t *testing.T)
reader_test.go:992
Function
TestResultPrefixReturnsIPv6NetworkWithoutIPv4Subtree
(t *testing.T)
result_test.go:26
Function
TestResultPrefixUsesIPv4StartBitDepth
(t *testing.T)
result_test.go:10
Function
TestSearchTreeSizeBytesUsesSafeMultiplicationOrder
(t *testing.T)
verifier_test.go:82
Function
TestSetIPv4StartKnownValues
TestSetIPv4StartKnownValues asserts the exact ipv4Start and ipv4StartBitDepth setIPv4Start computes for the standard mixed databases. The parity tests
reader_test.go:700
Function
TestSkipEmptyValues
(t *testing.T)
traverse_test.go:406
Function
TestSkipEmptyValuesWithNetworksWithin
(t *testing.T)
traverse_test.go:455
Function
TestSkipEmptyValuesWithOtherOptions
(t *testing.T)
traverse_test.go:527
Function
TestSlice
(t *testing.T)
internal/decoder/reflection_test.go:227
Function
TestString
(t *testing.T)
internal/decoder/reflection_test.go:459
Function
TestStringCacheConcurrent
TestStringCacheConcurrent stresses the lock-free cache with multiple goroutines hammering shared offsets. With -race this catches torn reads and admis
internal/decoder/string_cache_test.go:96
Function
TestStringCacheNoAdmissionOnSlotCollision
TestStringCacheNoAdmissionOnSlotCollision verifies that two offsets mapping to the same slot alternately miss without admitting. The Swap rule encodes
internal/decoder/string_cache_test.go:69
Function
TestStringCacheTwoMissAdmission
TestStringCacheTwoMissAdmission verifies the admission policy: the first miss at a given offset records the offset in recentMisses but does not store
internal/decoder/string_cache_test.go:41
Function
TestStringCacheVariousOffsets
(t *testing.T)
internal/decoder/string_cache_test.go:13
Function
TestStructInterface
(t *testing.T)
reader_test.go:426
Function
TestTagValidationIntegration
TestTagValidationIntegration tests that tag validation works during field processing.
internal/decoder/tag_validation_test.go:77
Function
TestTopLevelUnmarshalerRequiresNonNilPointer
(t *testing.T)
internal/decoder/nested_unmarshaler_test.go:87
Function
TestTopLevelUnmarshalerStillUsesValidPointer
(t *testing.T)
internal/decoder/nested_unmarshaler_test.go:117
Function
TestTraverseIPv4TreeBoundsCheck
TestTraverseIPv4TreeBoundsCheck isolates the bounds-check error path added to the specialized IPv4 walks at reader.go:625-629, 699-703, 786-790. The g
reader_test.go:884
Function
TestTraverseTreeRejectsShortBuffers
(t *testing.T)
bad_data_test.go:223
Function
TestUint128
Dedup with above somehow.
internal/decoder/reflection_test.go:520
Function
TestUint16
(t *testing.T)
internal/decoder/reflection_test.go:476
Function
TestUint32
(t *testing.T)
internal/decoder/reflection_test.go:487
Function
TestUint64
(t *testing.T)
internal/decoder/reflection_test.go:500
Function
TestUsingClosedDatabase
(t *testing.T)
reader_test.go:974
Function
TestV4ToV16RoundTrip
TestV4ToV16RoundTrip exercises v4ToV16 and v6ToV4 directly. They are only covered indirectly via lookup parity tests, which would not catch a regressi
traverse_test.go:580
Function
TestValidateTag
(t *testing.T)
internal/decoder/tag_validation_test.go:11
Function
TestValueTypeInterface
(t *testing.T)
reader_test.go:483
Function
TestVerifyDataSectionSeparatorOutOfBounds
(t *testing.T)
verifier_test.go:66
Function
TestVerifyOnBrokenDatabases
(t *testing.T)
verifier_test.go:50
Function
TestVerifyOnGoodDatabases
(t *testing.T)
verifier_test.go:10
Function
TestWrapError_ContextWhenError
(t *testing.T)
internal/decoder/error_context_test.go:25
Function
TestWrapError_ZeroAllocationHappyPath
(t *testing.T)
internal/decoder/error_context_test.go:12
Method
UnmarshalMaxMindDB
UnmarshalMaxMindDB implements the Unmarshaler interface for TestCity. This demonstrates custom decoding that avoids reflection for better performance.
reader_test.go:1454
Method
UnmarshalMaxMindDB
UnmarshalMaxMindDB implements the mmdbdata.Unmarshaler interface. This provides custom decoding logic, similar to how json.Unmarshaler works with enco
example_test.go:264
Method
UnmarshalMaxMindDB
(d *Decoder)
internal/decoder/reflection.go:19
Method
UnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:16
Method
UnmarshalMaxMindDB
(*Decoder)
internal/decoder/nested_unmarshaler_test.go:70
Method
UnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:78
Method
UnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:131
Method
UnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:186
Method
UnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:245
Method
UnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:290
Method
UnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:368
Method
UnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:406
Method
UnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:417
Method
UnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:428
Method
UnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:439
Method
UnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:450
Method
UnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:461
Method
UnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:472
Method
Unwrap
()
internal/mmdberrors/context.go:25
Method
method
()
reader_test.go:422
Function
mmap
mmap maps a file into memory and returns a byte slice.
mmap_windows.go:14
Function
mmap
(fd, length int)
mmap_unix.go:22
Function
munmap
munmap unmaps a memory-mapped file and releases associated resources.
mmap_windows.go:61
Function
munmap
(b []byte)
mmap_unix.go:33
Method
true
()
reader_test.go:470
Method
true
()
reader_test.go:475
← previous
301–386 of 386, ranked by callers