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

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.

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.

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.