...

Text file src/cmd/internal/test2json/testdata/README.md

Documentation: cmd/internal/test2json/testdata

     1# test2json test artifacts
     2
     3This directory contains test artifacts for `TestGolden` in
     4[test2json_test.go](../test2json_test.go). For each set of `<test>.*` files:
     5
     6- If `<test>.src` is present, TestGolden executes it as a script test and verifies
     7  that the output matches `<test>.test`. This verifies that the testing package
     8  produces the output expected by test2json.
     9- TestGolden reads `<test>.test` and processes it with a `Converter`, verifying
    10  that the output matches `<test>.json`.This verifies that test2json produces
    11  the expected output events.

View as plain text