Skip to content

Commit

Permalink
ignore gocyclo
Browse files Browse the repository at this point in the history
  • Loading branch information
rekby authored Feb 10, 2022
2 parents efbd096 + d3caa6a commit 77587c8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions objwalker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ func TestWalker_LoopProtected(t *testing.T) {
})
}

//nolint:gocyclo
//gocyclo:ignore
func TestWalker_Walk(t *testing.T) {
t.Run("Ok", func(t *testing.T) {
walker := New(func(info *WalkInfo) error {
Expand Down Expand Up @@ -129,6 +131,8 @@ func TestWalker_Walk(t *testing.T) {
})
}

//nolint:gocyclo
//gocyclo:ignore
func TestWalker_WalkArray(t *testing.T) {
for _, testName := range []string{"Ok", "Skip", "ErrorArray", "ErrorItem"} {
t.Run(testName, func(t *testing.T) {
Expand Down Expand Up @@ -249,6 +253,7 @@ func TestWalker_Interface(t *testing.T) {
}

//nolint:gocyclo
//gocyclo:ignore
func TestWalker_Map(t *testing.T) {
t.Run("Nil", func(t *testing.T) {
var m map[int]int
Expand Down Expand Up @@ -331,6 +336,8 @@ func TestWalker_Map(t *testing.T) {
}
}

//nolint:gocyclo
//gocyclo:ignore
func TestWalker_Ptr(t *testing.T) {
t.Run("int", func(t *testing.T) {
for _, testName := range []string{"Ok", "Skip", "Error"} {
Expand Down Expand Up @@ -394,6 +401,8 @@ func TestWalker_KindRoute(t *testing.T) {
})
}

//nolint:gocyclo
//gocyclo:ignore
func TestWalker_WalkSlice(t *testing.T) {
for _, testName := range []string{"Ok", "Skip", "Error", "ErrorItem"} {
t.Run(testName, func(t *testing.T) {
Expand Down Expand Up @@ -473,6 +482,8 @@ func TestWalkString(t *testing.T) {
})
}

//nolint:gocyclo
//gocyclo:ignore
func TestWalkStruct(t *testing.T) {
t.Run("Empty", func(t *testing.T) {
val := struct{}{}
Expand Down

0 comments on commit 77587c8

Please sign in to comment.