Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
GeoIP2-Anonymous-IP-Test.mmdb
GeoIP2-City-Test-Broken-Double-Format.mmdb
GeoIP2-City-Test-Invalid-Node-Count.mmdb
GeoIP2-City-Test.mmdb
GeoIP2-Connection-Type-Test.mmdb
GeoIP2-Country-Test.mmdb
GeoIP2-DensityIncome-Test.mmdb
GeoIP2-Domain-Test.mmdb
GeoIP2-Enterprise-Test.mmdb
GeoIP2-ISP-Test.mmdb
GeoIP2-Precision-Enterprise-Test.mmdb
GeoIP2-User-Count-Test.mmdb
GeoLite2-ASN-Test.mmdb
MaxMind-DB-no-ipv4-search-tree.mmdb
MaxMind-DB-string-value-entries.mmdb
MaxMind-DB-test-broken-pointers-24.mmdb
MaxMind-DB-test-broken-search-tree-24.mmdb
MaxMind-DB-test-decoder.mmdb
MaxMind-DB-test-ipv4-24.mmdb
MaxMind-DB-test-ipv4-28.mmdb
MaxMind-DB-test-ipv4-32.mmdb
MaxMind-DB-test-ipv6-24.mmdb
MaxMind-DB-test-ipv6-28.mmdb
MaxMind-DB-test-ipv6-32.mmdb
MaxMind-DB-test-metadata-pointers.mmdb
MaxMind-DB-test-mixed-24.mmdb
MaxMind-DB-test-mixed-28.mmdb
MaxMind-DB-test-mixed-32.mmdb
MaxMind-DB-test-nested.mmdb
README.md
maps-with-pointers.raw
write-test-data.pl

README.md

The write-test-dbs script will create a small set of test databases with a variety of data and record sizes (24, 28, & 32 bit).

These test databases are useful for testing code that reads MaxMind DB files.

There is also a maps-with-pointers.raw file. This contains the raw output of the MaxMind::DB::Writer::Serializer module, when given a series of maps which share some keys and values. It is used to test that decoder code can handle pointers to map keys and values, as well as to the whole map.

There are several ways to figure out what IP addresses are actually in the test databases. You can take a look at the source-data directory in this repository. This directory contains JSON files which are used to generate many (but not all) of the database files.

You can also use the mmdb-dump-database script in the MaxMind-DB-Reader-perl repository.

Some databases are intentionally broken and cannot be dumped. You can look at the script which generates these databases to see what IP addresses they include, which will be necessary for those databases which cannot be dumped because they contain intentional errors.