Files
kopia/cli/command_index_inspect_test.go
Jarek Kowalski 5179ad2cd2 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
2021-05-17 21:47:11 -07:00

18 lines
419 B
Go

package cli_test
import (
"strings"
"testing"
"github.com/kopia/kopia/tests/testenv"
)
func TestIndexInspect(t *testing.T) {
env := testenv.NewCLITest(t, testenv.NewInProcRunner(t))
env.RunAndExpectSuccess(t, "repo", "create", "filesystem", "--path", env.RepoDir)
someIndex := strings.Split(env.RunAndExpectSuccess(t, "index", "list")[0], " ")[0]
env.RunAndExpectSuccess(t, "index", "inspect", someIndex)
}