mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 16:31:47 +00:00
For tests we do not want to use the detection on os.Stdout to change what output we capture and assert against. In particular when running the sg tests for me under emacs's compilation-mode I get failures due to extra escape codes. This is a different take on ensuring tests do not have Isatty enabled. The previous attempt used the passed in writer to determine this. However, on further inspection of call sites we somewhat regularly captures the output and then only show it if something went wrong. In those cases we should preserve Isatty of stdout so the errors look prettier. Test Plan: go test -short ./... |
||
|---|---|---|
| .. | ||
| api | ||
| background | ||
| batches | ||
| cliutil | ||
| codeintel | ||
| errors | ||
| gitservice | ||
| iterator | ||
| managedservicesplatform | ||
| output | ||
| pointers | ||
| process | ||
| servicecatalog | ||
| go.mod | ||
| go.sum | ||
| README.md | ||
| tools.go | ||
Sourcegraph lib module
This directory is the root of a separate go module from the primary module rooted at sourcegraph/sourcegraph. This module exists to hold code that we want to reuse outside of the sourcegraph/sourcegraph repo.
Code in this module should not import from sourcegraph/sourcegraph or from other Sourcegraph repositories to avoid complicated dependency relationships. Instead consider moving code from elsewhere into this module.