mirror of
https://github.com/docker/cli.git
synced 2025-08-30 12:01:10 +03:00
16 lines
327 B
Bash
Executable File
16 lines
327 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eu -o pipefail
|
|
|
|
for pkg in $(go list ./... | grep -v /vendor/); do
|
|
./scripts/test/unit \
|
|
-cover \
|
|
-coverprofile=profile.out \
|
|
-covermode=atomic \
|
|
${pkg}
|
|
|
|
if test -f profile.out; then
|
|
cat profile.out >> coverage.txt
|
|
rm profile.out
|
|
fi
|
|
done
|