sourcegraph/internal/testutil
Noah S-C 53e04e3ca1
debt: extract a buncha stuff from cmd/frontend that was used outside of frontend (#52570)
As part of https://github.com/sourcegraph/sourcegraph/pull/52521, I had
to investigate the possible binary targets that would require explicit
calls to any of the new `Init`s that were previously implicit `init`s.
As part of this, by the power of bazel, I discovered some dependencies
on the changed packages in binaries that shouldnt need to (migrator
depending on `cmd/frontend/internal/highlight`[1]??). So heres a
mini-crusade to extract _some_ (but not all, because theres A LOT) of
the things out `cmd/frontend/internal` into more appropriate packages
(like `internal/`

<details>
<summary>[1]</summary>

```
$ bazel query 'kind("go_binary", rdeps(//..., //cmd/frontend/internal/highlight))'
//cmd/frontend:frontend
//cmd/sourcegraph-oss:sourcegraph-oss
//enterprise/cmd/frontend:frontend
//enterprise/cmd/migrator:migrator
//enterprise/cmd/sourcegraph:sourcegraph
//enterprise/cmd/worker:worker
```

</details>

## Test plan

https://buildkite.com/sourcegraph/sourcegraph/builds/223014

🔥 🙂
2023-06-01 14:20:11 +01:00
..
BUILD.bazel debt: extract a buncha stuff from cmd/frontend that was used outside of frontend (#52570) 2023-06-01 14:20:11 +01:00
golden.go all: use any instead of interface{} (#35102) 2022-05-09 10:59:39 +02:00
istest.go debt: extract a buncha stuff from cmd/frontend that was used outside of frontend (#52570) 2023-06-01 14:20:11 +01:00