Note how the first timing output line has the Test field, and the second one doesn't.
What did you expect to see?
Either both output events having the Test field set (which is what makes more sense to me and would make it easier to extract the data I am looking for, since without Test field I have to manually filter out metadata and result option lines), or neither (which curiously is what go doc test2json claims).
When a benchmark runs, it typically produces a single line of output giving timing results. That line is reported in an event with Action == "output" and no Test field.
Go version
go version go1.22.2 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
Note how the first timing output line has the Test field, and the second one doesn't.
What did you expect to see?
Either both output events having the Test field set (which is what makes more sense to me and would make it easier to extract the data I am looking for, since without Test field I have to manually filter out metadata and result option lines), or neither (which curiously is what
go doc test2json
claims).