summaryrefslogtreecommitdiff
path: root/vendor/github.com/docker/distribution/coverpkg.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/docker/distribution/coverpkg.sh')
-rwxr-xr-xvendor/github.com/docker/distribution/coverpkg.sh7
1 files changed, 0 insertions, 7 deletions
diff --git a/vendor/github.com/docker/distribution/coverpkg.sh b/vendor/github.com/docker/distribution/coverpkg.sh
deleted file mode 100755
index 25d419a..0000000
--- a/vendor/github.com/docker/distribution/coverpkg.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/env bash
-# Given a subpackage and the containing package, figures out which packages
-# need to be passed to `go test -coverpkg`: this includes all of the
-# subpackage's dependencies within the containing package, as well as the
-# subpackage itself.
-DEPENDENCIES="$(go list -f $'{{range $f := .Deps}}{{$f}}\n{{end}}' ${1} | grep ${2} | grep -v github.com/docker/distribution/vendor)"
-echo "${1} ${DEPENDENCIES}" | xargs echo -n | tr ' ' ','