Skip to content

Commit

Permalink
use require instead of assert
Browse files Browse the repository at this point in the history
  • Loading branch information
greeflas committed Jan 25, 2024
1 parent ab1fccb commit 942de22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion visualize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/dig"
"go.uber.org/dig/internal/digtest"
"go.uber.org/dig/internal/dot"
Expand Down Expand Up @@ -449,7 +450,7 @@ func assertCtorEqual(t *testing.T, expected *dot.Ctor, ctor *dot.Ctor) {
}

func assertCtorsEqual(t *testing.T, expected []*dot.Ctor, ctors []*dot.Ctor) {
assert.Len(t, ctors, len(expected))
require.Len(t, ctors, len(expected))

for i, c := range ctors {
assertCtorEqual(t, expected[i], c)
Expand Down

0 comments on commit 942de22

Please sign in to comment.