tree: 778670b7be9f21af6de9eef42455b15f398e0f06 [path history] [tgz]
  1. analysis/
  2. artificial/
  3. animated-red-blue.gif
  4. australian-abc-local-stations.json
  5. australian-abc-local-stations.tokens
  6. bricks-color.bmp
  7. bricks-color.jpeg
  8. bricks-color.lossless.webp
  9. bricks-color.lossy.webp
  10. bricks-color.png
  11. bricks-color.tiff
  12. bricks-dither.bmp
  13. bricks-dither.gif
  14. bricks-dither.indexes
  15. bricks-dither.indexes.giflzw
  16. bricks-dither.lossless.webp
  17. bricks-dither.palette
  18. bricks-dither.png
  19. bricks-gray.bmp
  20. bricks-gray.gif
  21. bricks-gray.indexes
  22. bricks-gray.indexes.giflzw
  23. bricks-gray.jpeg
  24. bricks-gray.lossless.webp
  25. bricks-gray.lossy.webp
  26. bricks-gray.png
  27. bricks-gray.tiff
  28. bricks-nodither.bmp
  29. bricks-nodither.gif
  30. bricks-nodither.indexes
  31. bricks-nodither.indexes.giflzw
  32. bricks-nodither.lossless.webp
  33. bricks-nodither.palette
  34. bricks-nodither.png
  35. bricks-nodither.wbmp
  36. crude-flag.nia
  37. crude-flag.nie
  38. crude-flag.nii
  39. file-sizes.json
  40. gifplayer-muybridge.gif
  41. github-tags.json
  42. harvesters.bmp
  43. harvesters.gif
  44. harvesters.jpeg
  45. harvesters.lossless.webp
  46. harvesters.lossy.webp
  47. harvesters.png
  48. harvesters.tiff
  49. hat.bmp
  50. hat.gif
  51. hat.jpeg
  52. hat.lossless.webp
  53. hat.lossy.webp
  54. hat.png
  55. hat.tiff
  56. hat.wbmp
  57. hibiscus.primitive.bmp
  58. hibiscus.primitive.gif
  59. hibiscus.primitive.jpeg
  60. hibiscus.primitive.lossless.webp
  61. hibiscus.primitive.lossy.webp
  62. hibiscus.primitive.png
  63. hibiscus.primitive.svg
  64. hibiscus.primitive.tiff
  65. hibiscus.regular.bmp
  66. hibiscus.regular.gif
  67. hibiscus.regular.jpeg
  68. hibiscus.regular.lossless.webp
  69. hibiscus.regular.lossy.webp
  70. hibiscus.regular.png
  71. hibiscus.regular.tiff
  72. hippopotamus.bmp
  73. hippopotamus.interlaced.gif
  74. hippopotamus.interlaced.png
  75. hippopotamus.interlaced.truncated.gif
  76. hippopotamus.jpeg
  77. hippopotamus.lossless.webp
  78. hippopotamus.lossy.webp
  79. hippopotamus.masked-with-muybridge.gif
  80. hippopotamus.masked-with-muybridge.png
  81. hippopotamus.regular.gif
  82. hippopotamus.regular.png
  83. hippopotamus.tiff
  84. json-quirks.json
  85. json-quirks.tokens
  86. json-things.formatted.json
  87. json-things.unformatted.json
  88. json-things.unformatted.tokens
  89. midsummer.txt
  90. midsummer.txt.gz
  91. midsummer.txt.zlib
  92. muybridge-frame-000.indexes
  93. muybridge-frame-000.wbmp
  94. muybridge-frame-001.indexes
  95. muybridge-frame-002.indexes
  96. muybridge-frame-003.indexes
  97. muybridge-frame-004.indexes
  98. muybridge-frame-005.indexes
  99. muybridge-frame-006.indexes
  100. muybridge-frame-007.indexes
  101. muybridge-frame-008.indexes
  102. muybridge-frame-009.indexes
  103. muybridge-frame-010.indexes
  104. muybridge-frame-011.indexes
  105. muybridge-frame-012.indexes
  106. muybridge-frame-013.indexes
  107. muybridge-frame-014.indexes
  108. muybridge.gif
  109. nobel-prizes.json
  110. pi.txt
  111. pi.txt.giflzw
  112. pi.txt.gz
  113. pi.txt.zlib
  114. pjw-thumbnail.bmp
  115. pjw-thumbnail.gif
  116. pjw-thumbnail.jpeg
  117. pjw-thumbnail.lossless.webp
  118. pjw-thumbnail.lossy.webp
  119. pjw-thumbnail.png
  120. pjw-thumbnail.tiff
  121. README.md
  122. rfc-6901-json-pointer.json
  123. romeo.txt
  124. romeo.txt.deflate
  125. romeo.txt.fixed-huff.deflate
  126. romeo.txt.gz
  127. romeo.txt.zlib
  128. sheep-more.rac
test/data/README.md

Unless otherwise noted, the *.gzfiles were generated by the gzip command line tool and the *.deflate and *.zlib versions were then generated by script/extract-deflate-offsets.go. Similarly, the *.giflzw files were generated by script/extract-giflzw.go and the *.palette and *.indexes files were generated by script/extract-palette-indexes.go. The *.tokens files were generated by script/print-json-token-debug-format.c.

The *.jpeg files are usually the canonical versions of the test/data images, and other versions (*.bmp, *.gif, *.png, *.tiff) were generated by ImageMagick's convert command line tool. The *.wbmp versions were generated by the script/convert-png-to-wbmp.go command line tool. The *.webp versions were generated by the cwebp command line tool.


The artificial directory holds artificially generated test data, often to explicitly test corner cases of various file formats. The files there usually come in families whose names have a common prefix, such as three files foo.bar, foo.bar.qux, foo.bar.commentary.txt all prefixed by foo.bar. The file whose name is that prefix is usually the canonical (typically hand-crafted) file, and the other files are then derived from that. Outside of the artificial directory, the other files in this directory are typically real world examples of various file formats, or deriviations of them.


animated-red-blue.gif is an original animation by Nigel Tao nigeltao@golang.org.

australian-abc-local-stations.json was crawled from data.gov.au.

bricks-* are various encodings of an original photo by Nigel Tao nigeltao@golang.org.

crude-flag.* is an original animation by Nigel Tao nigeltao@golang.org. See the lib/nie documentation.

file-sizes.json was created by running script/print-file-sizes-json.go in this repository's root directory.

gifplayer-muybridge.gif is an original animation by Nigel Tao nigeltao@golang.org.

harvesters.* are various encodings of a photo of “The Harvesters” by Pieter Bruegel the Elder, held by the Metropolitan Museum of Art. www.metmuseum.org lists that image as in the public domain.

github-tags.json was crawled from api.github.com.

hat.* are various encodings of a photo of “Self-Portrait with a Straw Hat (obverse: The Potato Peeler)” by Vincent van Gogh, held by the Metropolitan Museum of art. www.metmuseum.org lists that image as in the public domain.

hibiscus.regular.* are various encodings of a photo of “Hibiscus and Parrots” by Louis Comfort Tiffany, held by the Metropolitan Museum of Art. www.metmuseum.org lists that image as in the public domain.

hibiscus.primitive.* is the result of running the hibiscus.regular.png image through github.com/fogleman/primitive and other programs:

  • primitive -i hibiscus.regular.png -o hibiscus.primitive.svg -s 442 -n 32
  • inkscape -z -e hibiscus.primitive.png hibiscus.primitive.svg
  • Various invocations of convert and cwebp

hippopotamus.* are various encodings of a cropping of a photo of “Hippopotamus (William)”, held by the Metropolitan Museum of Art. www.metmuseum.org lists that image as in the public domain.

www.metmuseum.org says that “You are welcome to use images of artworks in The Met collection that the Museum believes to be in the public domain, or those to which the Museum waives any copyright it might have, for any purpose, including commercial and noncommercial use, free of charge and without requiring permission from the Museum.”

json-things.* are original JSON objects by Nigel Tao nigeltao@golang.org.

midsummer.txt is an excerpt of Shakespeare‘s "A Midsummer Night’s Dream", copied from shakespeare.mit.edu.

muybridge.gif is derived from en.wikipedia.org which is in the public domain.

nobel-prizes.json was crawled from api.nobelprize.org.

pi.txt contains the digits of pi.

pjw-thumbnail.* are various encodings of an image derived from an iconic, original photo of Peter J. Weinberger by Rob Pike r@golang.org.

rfc-6901-json-pointer.json is the example JSON document given in the RFC 6901 “JavaScript Object Notation (JSON) Pointer” specification.

romeo.txt is an excerpt of Shakespeare's “Romeo and Juliet”, copied from shakespeare.mit.edu.

romeo.txt.fixed-huff.deflate was derived from romeo.txt by a custom program to use fixed (not dynamic) Huffman tables for the deflate encoding.

sheep-more.rac is a RAC-compression of original text by Nigel Tao nigeltao@golang.org.