Skip to content

Commit

Permalink
Update test databases
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Aug 7, 2022
1 parent ca45e4e commit ca455be
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
42 changes: 23 additions & 19 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,25 +76,29 @@ func ExampleReader_Networks() {
log.Panic(networks.Err())
}
// Output:
// 1.0.0.0/24: Dialup
// 1.0.1.0/24: Cable/DSL
// 1.0.2.0/23: Dialup
// 1.0.4.0/22: Dialup
// 1.0.8.0/21: Dialup
// 1.0.16.0/20: Dialup
// 1.0.32.0/19: Dialup
// 1.0.64.0/18: Dialup
// 1.0.128.0/17: Dialup
// 1.0.0.0/24: Cable/DSL
// 1.0.1.0/24: Cellular
// 1.0.2.0/23: Cable/DSL
// 1.0.4.0/22: Cable/DSL
// 1.0.8.0/21: Cable/DSL
// 1.0.16.0/20: Cable/DSL
// 1.0.32.0/19: Cable/DSL
// 1.0.64.0/18: Cable/DSL
// 1.0.128.0/17: Cable/DSL
// 2.125.160.216/29: Cable/DSL
// 67.43.156.0/24: Cellular
// 80.214.0.0/20: Cellular
// 96.1.0.0/16: Cable/DSL
// 96.10.0.0/15: Cable/DSL
// 96.69.0.0/16: Cable/DSL
// 96.94.0.0/15: Cable/DSL
// 108.96.0.0/11: Cellular
// 175.16.199.0/24: Dialup
// 149.101.100.0/28: Cellular
// 175.16.199.0/24: Cable/DSL
// 187.156.138.0/24: Cable/DSL
// 201.243.200.0/24: Corporate
// 207.179.48.0/20: Cellular
// 216.160.83.56/29: Corporate
// 2003::/24: Cable/DSL
}

Expand Down Expand Up @@ -129,13 +133,13 @@ func ExampleReader_NetworksWithin() {
}

// Output:
// 1.0.0.0/24: Dialup
// 1.0.1.0/24: Cable/DSL
// 1.0.2.0/23: Dialup
// 1.0.4.0/22: Dialup
// 1.0.8.0/21: Dialup
// 1.0.16.0/20: Dialup
// 1.0.32.0/19: Dialup
// 1.0.64.0/18: Dialup
// 1.0.128.0/17: Dialup
// 1.0.0.0/24: Cable/DSL
// 1.0.1.0/24: Cellular
// 1.0.2.0/23: Cable/DSL
// 1.0.4.0/22: Cable/DSL
// 1.0.8.0/21: Cable/DSL
// 1.0.16.0/20: Cable/DSL
// 1.0.32.0/19: Cable/DSL
// 1.0.64.0/18: Cable/DSL
// 1.0.128.0/17: Cable/DSL
}
2 changes: 1 addition & 1 deletion test-data
Submodule test-data updated 50 files
+15 −11 MaxMind-DB-spec.md
+ MaxMind-DB-test-metadata-pointers.mmdb
+ bad-data/maxminddb-python/bad-unicode-in-map-key.mmdb
+1 −0 source-data/GeoIP2-Anonymous-IP-Test.json
+228 −48 source-data/GeoIP2-City-Test.json
+30 −10 source-data/GeoIP2-Connection-Type-Test.json
+46 −58 source-data/GeoIP2-Country-Test.json
+114 −4 source-data/GeoIP2-Enterprise-Test.json
+13 −1 source-data/GeoIP2-ISP-Test.json
+219 −6 source-data/GeoIP2-Precision-Enterprise-Test.json
+15 −0 source-data/GeoIP2-Static-IP-Score-Test.json
+18 −0 source-data/GeoIP2-User-Count-Test.json
+4,091 −8 source-data/GeoLite2-ASN-Test.json
+12,804 −0 source-data/GeoLite2-City-Test.json
+11,280 −0 source-data/GeoLite2-Country-Test.json
+ test-data/GeoIP2-Anonymous-IP-Test.mmdb
+ test-data/GeoIP2-City-Test-Broken-Double-Format.mmdb
+ test-data/GeoIP2-City-Test-Invalid-Node-Count.mmdb
+ test-data/GeoIP2-City-Test.mmdb
+ test-data/GeoIP2-Connection-Type-Test.mmdb
+ test-data/GeoIP2-Country-Test.mmdb
+ test-data/GeoIP2-DensityIncome-Test.mmdb
+ test-data/GeoIP2-Domain-Test.mmdb
+ test-data/GeoIP2-Enterprise-Test.mmdb
+ test-data/GeoIP2-ISP-Test.mmdb
+ test-data/GeoIP2-Precision-Enterprise-Test.mmdb
+ test-data/GeoIP2-Static-IP-Score-Test.mmdb
+ test-data/GeoIP2-User-Count-Test.mmdb
+ test-data/GeoLite2-ASN-Test.mmdb
+ test-data/GeoLite2-City-Test.mmdb
+ test-data/GeoLite2-Country-Test.mmdb
+ test-data/MaxMind-DB-no-ipv4-search-tree.mmdb
+ test-data/MaxMind-DB-string-value-entries.mmdb
+ test-data/MaxMind-DB-test-broken-pointers-24.mmdb
+ test-data/MaxMind-DB-test-broken-search-tree-24.mmdb
+ test-data/MaxMind-DB-test-decoder.mmdb
+ test-data/MaxMind-DB-test-ipv4-24.mmdb
+ test-data/MaxMind-DB-test-ipv4-28.mmdb
+ test-data/MaxMind-DB-test-ipv4-32.mmdb
+ test-data/MaxMind-DB-test-ipv6-24.mmdb
+ test-data/MaxMind-DB-test-ipv6-28.mmdb
+ test-data/MaxMind-DB-test-ipv6-32.mmdb
+ test-data/MaxMind-DB-test-metadata-pointers.mmdb
+ test-data/MaxMind-DB-test-mixed-24.mmdb
+ test-data/MaxMind-DB-test-mixed-28.mmdb
+ test-data/MaxMind-DB-test-mixed-32.mmdb
+ test-data/MaxMind-DB-test-nested.mmdb
+ test-data/MaxMind-DB-test-pointer-decoder.mmdb
+7 −5 test-data/README.md
+76 −22 test-data/write-test-data.pl

0 comments on commit ca455be

Please sign in to comment.