cli: test + misc improvements (#1083)

* cli: Added --max-examples-per-bucket flag to 'kopia snapshot estimate'

Added and cleaned up a bunch of unit tests.

Fixes #1054

* cli: misc tests to increase code coverage of the cli package

* ci: move code coverage run into separate GH job
This commit is contained in:
Jarek Kowalski authored and GitHub committed 2021-05-17 21:47:11 -07:00
1 parent 19ad8082e1
commit 5179ad2cd2
19 files changed
+423 -112

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
name: Code Coverage
on: [push,pull_request]
jobs:
tests:
name: Code Coverage Tests
runs-on: ubuntu-latest
steps:
- name: Set up Go.
uses: actions/setup-go@v2
with:
go-version: ^1.16
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run Tests
run: make test-with-coverage
- name: Publish Coverage Results
run: make ci-publish-coverage