Skip to content

Commit

Permalink
rendered: fix tests for human output
Browse files Browse the repository at this point in the history
  • Loading branch information
zegl committed Feb 20, 2023
1 parent 7279889 commit f0e1c0d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions renderer/human/output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func getTestCard() *scorecard.Scorecard {

func TestHumanOutputDefault(t *testing.T) {
t.Parallel()
r, err := Human(getTestCard(), 0, 100)
r, err := Human(getTestCard(), 0, 100, false)
assert.Nil(t, err)
all, err := ioutil.ReadAll(r)
assert.Nil(t, err)
Expand All @@ -118,7 +118,7 @@ v1/Testing bar-no-namespace

func TestHumanOutputVerbose1(t *testing.T) {
t.Parallel()
r, err := Human(getTestCard(), 1, 100)
r, err := Human(getTestCard(), 1, 100, false)
assert.Nil(t, err)
all, err := ioutil.ReadAll(r)
assert.Nil(t, err)
Expand Down Expand Up @@ -147,7 +147,7 @@ v1/Testing bar-no-namespace

func TestHumanOutputVerbose2(t *testing.T) {
t.Parallel()
r, err := Human(getTestCard(), 2, 100)
r, err := Human(getTestCard(), 2, 100, false)
assert.Nil(t, err)
all, err := ioutil.ReadAll(r)
assert.Nil(t, err)
Expand Down Expand Up @@ -265,7 +265,7 @@ func getTestCardAllOK() *scorecard.Scorecard {

func TestHumanOutputAllOKDefault(t *testing.T) {
t.Parallel()
r, err := Human(getTestCardAllOK(), 0, 100)
r, err := Human(getTestCardAllOK(), 0, 100, false)
assert.Nil(t, err)
all, err := ioutil.ReadAll(r)
assert.Nil(t, err)
Expand Down Expand Up @@ -308,7 +308,7 @@ func getTestCardLongDescription() *scorecard.Scorecard {

func TestHumanOutputLogDescription120Width(t *testing.T) {
t.Parallel()
r, err := Human(getTestCardLongDescription(), 0, 120)
r, err := Human(getTestCardLongDescription(), 0, 120, false)
assert.Nil(t, err)
all, err := ioutil.ReadAll(r)
assert.Nil(t, err)
Expand All @@ -324,7 +324,7 @@ func TestHumanOutputLogDescription120Width(t *testing.T) {

func TestHumanOutputLogDescription100Width(t *testing.T) {
t.Parallel()
r, err := Human(getTestCardLongDescription(), 0, 100)
r, err := Human(getTestCardLongDescription(), 0, 100, false)
assert.Nil(t, err)
all, err := ioutil.ReadAll(r)
assert.Nil(t, err)
Expand All @@ -341,7 +341,7 @@ func TestHumanOutputLogDescription100Width(t *testing.T) {

func TestHumanOutputLogDescription80Width(t *testing.T) {
t.Parallel()
r, err := Human(getTestCardLongDescription(), 0, 80)
r, err := Human(getTestCardLongDescription(), 0, 80, false)
assert.Nil(t, err)
all, err := ioutil.ReadAll(r)
assert.Nil(t, err)
Expand All @@ -359,7 +359,7 @@ func TestHumanOutputLogDescription80Width(t *testing.T) {

func TestHumanOutputLogDescription0Width(t *testing.T) {
t.Parallel()
r, err := Human(getTestCardLongDescription(), 0, 0)
r, err := Human(getTestCardLongDescription(), 0, 0, false)
assert.Nil(t, err)
all, err := ioutil.ReadAll(r)
assert.Nil(t, err)
Expand Down Expand Up @@ -413,7 +413,7 @@ func getTestCardLongTitle() *scorecard.Scorecard {

func TestHumanOutputWithLongObjectNames(t *testing.T) {
t.Parallel()
r, err := Human(getTestCardLongTitle(), 0, 80)
r, err := Human(getTestCardLongTitle(), 0, 80, false)
assert.Nil(t, err)
all, err := ioutil.ReadAll(r)
assert.Nil(t, err)
Expand Down

0 comments on commit f0e1c0d

Please sign in to comment.