Skip to content

Commit

Permalink
Must use pointer receiver in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeljusto committed Aug 22, 2023
1 parent 104c453 commit feb78c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gorp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ type DummyFields struct {
DummyField175 *[]int64 `db:"-"`
}

func (s SmartInvoice) DBColumns(columnNames []string) ([]interface{}, error) {
func (s *SmartInvoice) DBColumns(columnNames []string) ([]interface{}, error) {
var columns []interface{}
for _, columnName := range columnNames {
switch strings.ToLower(columnName) {
Expand Down

0 comments on commit feb78c3

Please sign in to comment.