Skip to content

Commit

Permalink
correcting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacobbrewer1 committed Feb 6, 2025
1 parent 3b58ac7 commit e1efd01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inserter/sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ func (s *generateSQLSuite) TestGenerateSQL_Success_IgnoredFieldsFunc() {
}

mif := patcher.NewMockIgnoreFieldsFunc(s.T())
mif.On("Execute", mock.Anything).Return(func(f reflect.StructField) bool {
mif.On("Execute", mock.AnythingOfType("*reflect.StructField")).Return(func(f *reflect.StructField) bool {
return f.Name == "ID"
})

Expand Down
2 changes: 1 addition & 1 deletion sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ func (s *newSQLPatchSuite) TestNewSQLPatch_Success_IgnoredFieldsFunc() {
}

ignoreFunc := NewMockIgnoreFieldsFunc(s.T())
ignoreFunc.On("Execute", mock.AnythingOfType("reflect.StructField")).Return(func(field *reflect.StructField) bool {
ignoreFunc.On("Execute", mock.AnythingOfType("*reflect.StructField")).Return(func(field *reflect.StructField) bool {
return field.Name == "Id" || field.Name == "Description"
})

Expand Down

0 comments on commit e1efd01

Please sign in to comment.