blog.8-p.info

The answer was both. But since Go 1.14, go test only uses stdout.

From Russ Cox's commit message:

In past releases, whether test output appears on stdout or stderr has varied depending on exactly how go test was invoked and also (indefensibly) on the number of CPUs available.