tree: 86def4a4cbcaa4ea6ec567e8850d2ba1e6bddbe4 [path history] [tgz]
  1. ascii.json
  2. ascii.test
  3. attr.json
  4. attr.test
  5. bench.json
  6. bench.test
  7. benchfail.json
  8. benchfail.test
  9. benchshort.json
  10. benchshort.test
  11. empty.json
  12. empty.test
  13. frame.json
  14. frame.test
  15. framebig.json
  16. framebig.test
  17. frameescape.json
  18. frameescape.src
  19. frameescape.test
  20. framefail.json
  21. framefail.test
  22. framefuzz.json
  23. framefuzz.test
  24. issue23036.json
  25. issue23036.test
  26. issue23920.json
  27. issue23920.test
  28. issue29755.json
  29. issue29755.test
  30. multiline-error.src
  31. panic.json
  32. panic.test
  33. README.md
  34. smiley.json
  35. smiley.test
  36. timeout.json
  37. timeout.test
  38. unicode.json
  39. unicode.test
  40. vet.json
  41. vet.test
src/cmd/internal/test2json/testdata/README.md

test2json test artifacts

This directory contains test artifacts for TestGolden in test2json_test.go. For each set of <test>.* files:

  • If <test>.src is present, TestGolden executes it as a script test and verifies that the output matches <test>.test. This verifies that the testing package produces the output expected by test2json.
  • TestGolden reads <test>.test and processes it with a Converter, verifying that the output matches <test>.json.This verifies that test2json produces the expected output events.