Skip to content

Commit

Permalink
TECH Increase code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sibprogrammer committed Sep 6, 2023
1 parent 54a64f3 commit 9457971
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ func TestRootCmd(t *testing.T) {
assert.Nil(t, err)
assert.Contains(t, output, "This is not a real user")

output, err = execute(command, "--no-color", xmlFilePath)
assert.Nil(t, err)
assert.Contains(t, output, "first_name")

output, err = execute(command, "--indent", "0", xmlFilePath)
assert.Nil(t, err)
assert.NotContains(t, output, "\n")

output, err = execute(command, "--tab", xmlFilePath)
assert.Nil(t, err)
assert.Contains(t, output, "\t")
Expand Down

0 comments on commit 9457971

Please sign in to comment.