MCPcopy Create free account

hub / github.com/oschwald/maxminddb-golang / functions

Functions386 in github.com/oschwald/maxminddb-golang

FunctionTestNextValueOffsetSkipsPointerTokenOnly
(t *testing.T)
internal/decoder/data_decoder_test.go:271
FunctionTestNonDatabase
(t *testing.T)
reader_test.go:958
FunctionTestNonEmptyNilInterface
(t *testing.T)
reader_test.go:437
FunctionTestOffsetReturnsValueStart
(t *testing.T)
internal/decoder/decoder_test.go:609
FunctionTestOpenBytesAppliesReaderOptions
(t *testing.T)
reader_test.go:71
FunctionTestOversizedPointerReturnsError
(t *testing.T)
internal/decoder/reflection_test.go:591
FunctionTestPathBuilder
(t *testing.T)
internal/decoder/error_context_test.go:45
FunctionTestPeekKind
(t *testing.T)
internal/decoder/decoder_test.go:526
FunctionTestPeekKindWithPointer
TestPeekKindWithPointer tests that PeekKind correctly follows pointers to get the actual kind of the pointed-to value.
internal/decoder/decoder_test.go:594
FunctionTestPointerStructFieldCaching
(t *testing.T)
internal/decoder/field_precedence_test.go:136
FunctionTestPointerStructFieldCachingChecksDepth
(t *testing.T)
internal/decoder/field_precedence_test.go:172
FunctionTestPointerToPointerChain
(t *testing.T)
internal/decoder/decoder_test.go:726
FunctionTestPointers
(t *testing.T)
internal/decoder/reflection_test.go:567
FunctionTestPointersInDecoder
(t *testing.T)
internal/decoder/decoder_test.go:450
FunctionTestPreinitializedInterfaceFieldUsesUnmarshaler
(t *testing.T)
internal/decoder/nested_unmarshaler_test.go:378
FunctionTestPreinitializedPointerToInterfaceFieldUsesUnmarshaler
(t *testing.T)
internal/decoder/nested_unmarshaler_test.go:671
FunctionTestReadMapEarlyBreakAfterValueAdvancesPastMap
(t *testing.T)
internal/decoder/decoder_test.go:172
FunctionTestReadMapEarlyBreakBeforeValueAdvancesPastMap
(t *testing.T)
internal/decoder/decoder_test.go:203
FunctionTestReadNodePairBySizeRejectsShortBuffers
(t *testing.T)
bad_data_test.go:204
FunctionTestReadSliceEarlyBreakAfterValueAdvancesPastSlice
(t *testing.T)
internal/decoder/decoder_test.go:261
FunctionTestReadSliceEarlyBreakBeforeValueAdvancesPastSlice
(t *testing.T)
internal/decoder/decoder_test.go:289
FunctionTestReader
(t *testing.T)
reader_test.go:24
FunctionTestReaderBytes
(t *testing.T)
reader_test.go:47
FunctionTestReaderLeaks
(t *testing.T)
reader_test.go:80
FunctionTestRecursivePointerStructFieldCaching
(t *testing.T)
internal/decoder/field_precedence_test.go:161
FunctionTestReflectUintFromMultipleSourceKinds
TestReflectUintFromMultipleSourceKinds covers the three KindUint* cases that tryFastDecodeTyped's reflect.Uint branch accepts for a plain `uint` field
internal/decoder/reflection_test.go:125
FunctionTestReflectUintOverflowFallback
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
FunctionTestResultDecodeAfterReaderClose
(t *testing.T)
reader_test.go:992
FunctionTestResultPrefixReturnsIPv6NetworkWithoutIPv4Subtree
(t *testing.T)
result_test.go:26
FunctionTestResultPrefixUsesIPv4StartBitDepth
(t *testing.T)
result_test.go:10
FunctionTestSearchTreeSizeBytesUsesSafeMultiplicationOrder
(t *testing.T)
verifier_test.go:82
FunctionTestSetIPv4StartKnownValues
TestSetIPv4StartKnownValues asserts the exact ipv4Start and ipv4StartBitDepth setIPv4Start computes for the standard mixed databases. The parity tests
reader_test.go:700
FunctionTestSkipEmptyValues
(t *testing.T)
traverse_test.go:406
FunctionTestSkipEmptyValuesWithNetworksWithin
(t *testing.T)
traverse_test.go:455
FunctionTestSkipEmptyValuesWithOtherOptions
(t *testing.T)
traverse_test.go:527
FunctionTestSlice
(t *testing.T)
internal/decoder/reflection_test.go:227
FunctionTestString
(t *testing.T)
internal/decoder/reflection_test.go:459
FunctionTestStringCacheConcurrent
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
FunctionTestStringCacheNoAdmissionOnSlotCollision
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
FunctionTestStringCacheTwoMissAdmission
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
FunctionTestStringCacheVariousOffsets
(t *testing.T)
internal/decoder/string_cache_test.go:13
FunctionTestStructInterface
(t *testing.T)
reader_test.go:426
FunctionTestTagValidationIntegration
TestTagValidationIntegration tests that tag validation works during field processing.
internal/decoder/tag_validation_test.go:77
FunctionTestTopLevelUnmarshalerRequiresNonNilPointer
(t *testing.T)
internal/decoder/nested_unmarshaler_test.go:87
FunctionTestTopLevelUnmarshalerStillUsesValidPointer
(t *testing.T)
internal/decoder/nested_unmarshaler_test.go:117
FunctionTestTraverseIPv4TreeBoundsCheck
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
FunctionTestTraverseTreeRejectsShortBuffers
(t *testing.T)
bad_data_test.go:223
FunctionTestUint128
Dedup with above somehow.
internal/decoder/reflection_test.go:520
FunctionTestUint16
(t *testing.T)
internal/decoder/reflection_test.go:476
FunctionTestUint32
(t *testing.T)
internal/decoder/reflection_test.go:487
FunctionTestUint64
(t *testing.T)
internal/decoder/reflection_test.go:500
FunctionTestUsingClosedDatabase
(t *testing.T)
reader_test.go:974
FunctionTestV4ToV16RoundTrip
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
FunctionTestValidateTag
(t *testing.T)
internal/decoder/tag_validation_test.go:11
FunctionTestValueTypeInterface
(t *testing.T)
reader_test.go:483
FunctionTestVerifyDataSectionSeparatorOutOfBounds
(t *testing.T)
verifier_test.go:66
FunctionTestVerifyOnBrokenDatabases
(t *testing.T)
verifier_test.go:50
FunctionTestVerifyOnGoodDatabases
(t *testing.T)
verifier_test.go:10
FunctionTestWrapError_ContextWhenError
(t *testing.T)
internal/decoder/error_context_test.go:25
FunctionTestWrapError_ZeroAllocationHappyPath
(t *testing.T)
internal/decoder/error_context_test.go:12
MethodUnmarshalMaxMindDB
UnmarshalMaxMindDB implements the Unmarshaler interface for TestCity. This demonstrates custom decoding that avoids reflection for better performance.
reader_test.go:1454
MethodUnmarshalMaxMindDB
UnmarshalMaxMindDB implements the mmdbdata.Unmarshaler interface. This provides custom decoding logic, similar to how json.Unmarshaler works with enco
example_test.go:264
MethodUnmarshalMaxMindDB
(d *Decoder)
internal/decoder/reflection.go:19
MethodUnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:16
MethodUnmarshalMaxMindDB
(*Decoder)
internal/decoder/nested_unmarshaler_test.go:70
MethodUnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:78
MethodUnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:131
MethodUnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:186
MethodUnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:245
MethodUnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:290
MethodUnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:368
MethodUnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:406
MethodUnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:417
MethodUnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:428
MethodUnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:439
MethodUnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:450
MethodUnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:461
MethodUnmarshalMaxMindDB
(d *Decoder)
internal/decoder/nested_unmarshaler_test.go:472
MethodUnwrap
()
internal/mmdberrors/context.go:25
Methodmethod
()
reader_test.go:422
Functionmmap
mmap maps a file into memory and returns a byte slice.
mmap_windows.go:14
Functionmmap
(fd, length int)
mmap_unix.go:22
Functionmunmap
munmap unmaps a memory-mapped file and releases associated resources.
mmap_windows.go:61
Functionmunmap
(b []byte)
mmap_unix.go:33
Methodtrue
()
reader_test.go:470
Methodtrue
()
reader_test.go:475
← previous301–386 of 386, ranked by callers