Skip to content

Commit

Permalink
Bring back "should not initialize slice pointer"
Browse files Browse the repository at this point in the history
  • Loading branch information
SpectrumQT authored Jan 28, 2019
1 parent 1879333 commit 8262bff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@ func TestInit(t *testing.T) {
if sample.MapWithNoTag != nil {
t.Errorf("it should not initialize pointer type (map)")
}
if sample.SliceWithNoTag != nil {
t.Errorf("it should not initialize pointer type (slice)")
}
if sample.StructPtrWithNoTag != nil {
t.Errorf("it should not initialize pointer type (struct)")
}
Expand Down

0 comments on commit 8262bff

Please sign in to comment.