moby/quota
Sebastiaan van Stijn 1aa17222e7
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>
2023-07-17 23:05:09 +02:00
..
errors.go quota: format code with gofumpt 2023-06-29 00:31:50 +02:00
projectquota.go quota: format code with gofumpt 2023-06-29 00:31:50 +02:00
projectquota_test.go quota: format code with gofumpt 2023-06-29 00:31:50 +02:00
projectquota_unsupported.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
testhelpers.go quota: remove gotest.tools from testhelpers 2023-07-17 23:05:09 +02:00
types.go quota: move quota package out of graphdriver 2020-10-05 13:28:25 +00:00