tree: d6bd6d9b9f050a8683f40388049f280d60b2497c [path history] [tgz]
  1. analysis/
  2. artificial/
  3. non-ascii/
  4. animated-red-blue.gif
  5. animated-red-blue.nia
  6. archive.7z
  7. archive.cab
  8. archive.iso
  9. archive.password-is-asdf.zip
  10. archive.rar
  11. archive.tar
  12. archive.tar.bz2
  13. archive.tar.gz
  14. archive.zip
  15. australian-abc-local-stations.json
  16. australian-abc-local-stations.tokens
  17. bricks-color.bmp
  18. bricks-color.jpeg
  19. bricks-color.lossless.webp
  20. bricks-color.lossy.webp
  21. bricks-color.png
  22. bricks-color.tiff
  23. bricks-dither.bmp
  24. bricks-dither.gif
  25. bricks-dither.indexes
  26. bricks-dither.indexes.giflzw
  27. bricks-dither.lossless.webp
  28. bricks-dither.no-ancillary.png
  29. bricks-dither.palette
  30. bricks-dither.png
  31. bricks-gray.bmp
  32. bricks-gray.gif
  33. bricks-gray.indexes
  34. bricks-gray.indexes.giflzw
  35. bricks-gray.jpeg
  36. bricks-gray.lossless.webp
  37. bricks-gray.lossy.webp
  38. bricks-gray.no-ancillary.png
  39. bricks-gray.png
  40. bricks-gray.tiff
  41. bricks-nodither.bmp
  42. bricks-nodither.gif
  43. bricks-nodither.indexes
  44. bricks-nodither.indexes.giflzw
  45. bricks-nodither.lossless.webp
  46. bricks-nodither.palette
  47. bricks-nodither.png
  48. bricks-nodither.wbmp
  49. cbor-rfc-7049-examples.cbor
  50. cbor-rfc-7049-examples.sans-comments.json
  51. cbor-rfc-7049-examples.tokens
  52. cbor-rfc-7049-examples.with-comments.json
  53. checkerboard.gamma1dot0.png
  54. checkerboard.gamma2dot2.png
  55. crude-flag.nia
  56. crude-flag.nie
  57. crude-flag.nii
  58. DCI-P3-D65.icc
  59. DCI-P3-D65.icc.zlib
  60. file-sizes.json
  61. gifplayer-muybridge.gif
  62. github-tags.json
  63. harvesters.bmp
  64. harvesters.gif
  65. harvesters.jpeg
  66. harvesters.lossless.webp
  67. harvesters.lossy.webp
  68. harvesters.png
  69. harvesters.tiff
  70. hat.bmp
  71. hat.gif
  72. hat.jpeg
  73. hat.lossless.webp
  74. hat.lossy.webp
  75. hat.png
  76. hat.tiff
  77. hat.wbmp
  78. hello.sh
  79. hibiscus.primitive.bmp
  80. hibiscus.primitive.gif
  81. hibiscus.primitive.jpeg
  82. hibiscus.primitive.lossless.webp
  83. hibiscus.primitive.lossy.webp
  84. hibiscus.primitive.png
  85. hibiscus.primitive.svg
  86. hibiscus.primitive.tiff
  87. hibiscus.regular.bmp
  88. hibiscus.regular.gif
  89. hibiscus.regular.jpeg
  90. hibiscus.regular.lossless.webp
  91. hibiscus.regular.lossy.webp
  92. hibiscus.regular.png
  93. hibiscus.regular.tiff
  94. hippopotamus.bmp
  95. hippopotamus.interlaced.gif
  96. hippopotamus.interlaced.png
  97. hippopotamus.interlaced.truncated.gif
  98. hippopotamus.jpeg
  99. hippopotamus.lossless.webp
  100. hippopotamus.lossy.webp
  101. hippopotamus.masked-with-muybridge.gif
  102. hippopotamus.masked-with-muybridge.png
  103. hippopotamus.nie
  104. hippopotamus.regular.gif
  105. hippopotamus.regular.png
  106. hippopotamus.tiff
  107. json-quirks.json
  108. json-quirks.tokens
  109. json-things.cbor
  110. json-things.formatted.json
  111. json-things.unformatted.json
  112. json-things.unformatted.tokens
  113. midsummer.txt
  114. midsummer.txt.gz
  115. midsummer.txt.zlib
  116. muybridge-frame-000.indexes
  117. muybridge-frame-000.wbmp
  118. muybridge-frame-001.indexes
  119. muybridge-frame-002.indexes
  120. muybridge-frame-003.indexes
  121. muybridge-frame-004.indexes
  122. muybridge-frame-005.indexes
  123. muybridge-frame-006.indexes
  124. muybridge-frame-007.indexes
  125. muybridge-frame-008.indexes
  126. muybridge-frame-009.indexes
  127. muybridge-frame-010.indexes
  128. muybridge-frame-011.indexes
  129. muybridge-frame-012.indexes
  130. muybridge-frame-013.indexes
  131. muybridge-frame-014.indexes
  132. muybridge.gif
  133. nobel-prizes.json
  134. pi.txt
  135. pi.txt.giflzw
  136. pi.txt.gz
  137. pi.txt.zlib
  138. pjw-thumbnail.bmp
  139. pjw-thumbnail.gif
  140. pjw-thumbnail.jpeg
  141. pjw-thumbnail.lossless.webp
  142. pjw-thumbnail.lossy.webp
  143. pjw-thumbnail.png
  144. pjw-thumbnail.tiff
  145. README.md
  146. red-blue-gradient.dcip3d65-no-chrm-no-gama.png
  147. red-blue-gradient.gamma1dot0.png
  148. red-blue-gradient.gamma1dot8.png
  149. red-blue-gradient.gamma2dot2.png
  150. red-blue-gradient.vanilla.png
  151. rfc-6901-json-pointer.json
  152. rgb24png.bmp
  153. romeo.txt
  154. romeo.txt.bz2
  155. romeo.txt.deflate
  156. romeo.txt.fixed-huff.deflate
  157. romeo.txt.gz
  158. romeo.txt.zlib
  159. 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 *.no-ancillary.png files were generated by the script/strip-png-ancillary-chunks.go 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.


The non-ascii directory holds trivial UTF-8 (but not ASCII) text files.


DCI-P3-D65.icc comes from color.org. DCI-P3-D65.icc.zlib is a zlib-compresion of that, created by Go's standard library.

archive.* archives a subset of other files in this directory.

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.

cbor-rfc-7049-examples.cbor is the concatenated examples from RFC 7049. The cbor-rfc-7049-examples.*.json files were then generated by example/cbor-to-json.

checkerboard.*.png was generated by script/make-red-blue-gradient.go.

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.

hello.sh is a trivial shell script.

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.

red-blue-gradient.*.png was generated by script/make-red-blue-gradient.go.

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

rgb24png.bmp comes from BMP Suite, which states that its generated images “are in the public domain”.

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.