Skip to content

Commit

Permalink
rename receiver variable
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxNode committed Feb 27, 2024
1 parent b2644e6 commit 3eaf780
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions exchange/exchange_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2455,29 +2455,29 @@ type fakeBidIDGenerator struct {
bidCount map[string]int
}

func (m *fakeBidIDGenerator) Enabled() bool {
return m.GenerateBidID
func (f *fakeBidIDGenerator) Enabled() bool {
return f.GenerateBidID
}

func (m *fakeBidIDGenerator) New(bidder string) (string, error) {
if m.ReturnError {
func (f *fakeBidIDGenerator) New(bidder string) (string, error) {
if f.ReturnError {
return "", errors.New("Test error generating bid.ext.prebid.bidid")
}

if m.bidCount == nil {
m.bidCount = make(map[string]int)
if f.bidCount == nil {
f.bidCount = make(map[string]int)
}

m.bidCount[bidder] += 1
return fmt.Sprintf("bid-%v-%v", bidder, m.bidCount[bidder]), nil
f.bidCount[bidder] += 1
return fmt.Sprintf("bid-%v-%v", bidder, f.bidCount[bidder]), nil
}

type fakeBooleanGenerator struct {
value bool
}

func (m *fakeBooleanGenerator) Generate() bool {
return m.value
func (f *fakeBooleanGenerator) Generate() bool {
return f.value
}

func newExtRequest() openrtb_ext.ExtRequest {
Expand Down

0 comments on commit 3eaf780

Please sign in to comment.