moby/quota
Sebastiaan van Stijn bd1ae65aab
quota: remove gotest.tools from testhelpers
gotest.tools has an init() which registers a '-update' flag;
a80f057529/internal/source/update.go (L21-L23)

The quota helper contains a testhelpers file, which is meant for usage
in (integration) tests, but as it's in the same pacakge as production
code, would also trigger the gotest.tools init.

This patch removes the gotest.tools code from this file.

Before this patch:

    $ (exec -a libnetwork-setkey "$(which dockerd)" -help)
    Usage of libnetwork-setkey:
      -exec-root string
            docker exec root (default "/run/docker")
      -update
            update golden values

With this patch applied:

    $ (exec -a libnetwork-setkey "$(which dockerd)" -help)
    Usage of libnetwork-setkey:
      -exec-root string
            docker exec root (default "/run/docker")

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 1aa17222e7)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-07-17 23:12:28 +02:00
..
errors.go quota: move quota package out of graphdriver 2020-10-05 13:28:25 +00:00
projectquota.go gofmt GoDoc comments with go1.19 2022-07-08 19:56:23 +02:00
projectquota_test.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
projectquota_unsupported.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
testhelpers.go quota: remove gotest.tools from testhelpers 2023-07-17 23:12:28 +02:00
types.go quota: move quota package out of graphdriver 2020-10-05 13:28:25 +00:00