Skip to content

Commit

Permalink
OTT-54 Fixing gofmt Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pm-viral-vala committed Jan 19, 2021
1 parent 531671c commit b390e5a
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 53 deletions.
10 changes: 5 additions & 5 deletions adapters/vastbidder/macro_processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestMacroProcessor_ProcessString(t *testing.T) {

sampleBidRequest := &openrtb.BidRequest{
Imp: []openrtb.Imp{
openrtb.Imp{TagID: testMacroValues[MacroTagID]},
{TagID: testMacroValues[MacroTagID]},
},
Site: &openrtb.Site{
Publisher: &openrtb.Publisher{
Expand Down Expand Up @@ -161,7 +161,7 @@ func TestMacroProcessor_processKey(t *testing.T) {

sampleBidRequest := &openrtb.BidRequest{
Imp: []openrtb.Imp{
openrtb.Imp{TagID: testMacroValues[MacroTagID]},
{TagID: testMacroValues[MacroTagID]},
},
Site: &openrtb.Site{
Publisher: &openrtb.Publisher{
Expand Down Expand Up @@ -314,7 +314,7 @@ func TestMacroProcessor_processURLValues(t *testing.T) {

sampleBidRequest := &openrtb.BidRequest{
Imp: []openrtb.Imp{
openrtb.Imp{TagID: testMacroValues[MacroTagID]},
{TagID: testMacroValues[MacroTagID]},
},
Site: &openrtb.Site{
Publisher: &openrtb.Publisher{
Expand Down Expand Up @@ -433,7 +433,7 @@ func TestMacroProcessor_processURLValuesEscapingKeys(t *testing.T) {

sampleBidRequest := &openrtb.BidRequest{
Imp: []openrtb.Imp{
openrtb.Imp{TagID: testMacroValues[MacroTagID]},
{TagID: testMacroValues[MacroTagID]},
},
Site: &openrtb.Site{
Publisher: &openrtb.Publisher{
Expand Down Expand Up @@ -505,7 +505,7 @@ func TestMacroProcessor_ProcessURL(t *testing.T) {

sampleBidRequest := &openrtb.BidRequest{
Imp: []openrtb.Imp{
openrtb.Imp{TagID: testMacroValues[MacroTagID]},
{TagID: testMacroValues[MacroTagID]},
},
Site: &openrtb.Site{
ID: testMacroValues[MacroSiteID],
Expand Down
96 changes: 48 additions & 48 deletions endpoints/openrtb2/ctv/response/adpod_generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ func TestAdPodGenerator_getMaxAdPodBid(t *testing.T) {
},
args: args{
results: []*highestCombination{
&highestCombination{
{
filteredBids: map[string]*filteredBid{
`bid-1`: &filteredBid{bid: &types.Bid{Bid: &openrtb.Bid{ID: `bid-1`}}, reasonCode: constant.CTVRCCategoryExclusion},
`bid-2`: &filteredBid{bid: &types.Bid{Bid: &openrtb.Bid{ID: `bid-2`}}, reasonCode: constant.CTVRCCategoryExclusion},
`bid-3`: &filteredBid{bid: &types.Bid{Bid: &openrtb.Bid{ID: `bid-3`}}, reasonCode: constant.CTVRCCategoryExclusion},
`bid-1`: {bid: &types.Bid{Bid: &openrtb.Bid{ID: `bid-1`}}, reasonCode: constant.CTVRCCategoryExclusion},
`bid-2`: {bid: &types.Bid{Bid: &openrtb.Bid{ID: `bid-2`}}, reasonCode: constant.CTVRCCategoryExclusion},
`bid-3`: {bid: &types.Bid{Bid: &openrtb.Bid{ID: `bid-3`}}, reasonCode: constant.CTVRCCategoryExclusion},
},
},
},
Expand All @@ -139,11 +139,11 @@ func TestAdPodGenerator_getMaxAdPodBid(t *testing.T) {
},
args: args{
results: []*highestCombination{
&highestCombination{
{
bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-1`}},
&types.Bid{Bid: &openrtb.Bid{ID: `bid-2`}},
&types.Bid{Bid: &openrtb.Bid{ID: `bid-3`}},
{Bid: &openrtb.Bid{ID: `bid-1`}},
{Bid: &openrtb.Bid{ID: `bid-2`}},
{Bid: &openrtb.Bid{ID: `bid-3`}},
},
bidIDs: []string{`bid-1`, `bid-2`, `bid-3`},
price: 20,
Expand All @@ -157,16 +157,16 @@ func TestAdPodGenerator_getMaxAdPodBid(t *testing.T) {
`domain-2`: 1,
},
filteredBids: map[string]*filteredBid{
`bid-4`: &filteredBid{bid: &types.Bid{Bid: &openrtb.Bid{ID: `bid-4`}}, reasonCode: constant.CTVRCCategoryExclusion},
`bid-4`: {bid: &types.Bid{Bid: &openrtb.Bid{ID: `bid-4`}}, reasonCode: constant.CTVRCCategoryExclusion},
},
},
},
},
want: &types.AdPodBid{
Bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-1`}},
&types.Bid{Bid: &openrtb.Bid{ID: `bid-2`}},
&types.Bid{Bid: &openrtb.Bid{ID: `bid-3`}},
{Bid: &openrtb.Bid{ID: `bid-1`}},
{Bid: &openrtb.Bid{ID: `bid-2`}},
{Bid: &openrtb.Bid{ID: `bid-3`}},
},
Cat: []string{`cat-1`, `cat-2`},
ADomain: []string{`domain-1`, `domain-2`},
Expand All @@ -181,33 +181,33 @@ func TestAdPodGenerator_getMaxAdPodBid(t *testing.T) {
},
args: args{
results: []*highestCombination{
&highestCombination{
{
bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-11`}},
{Bid: &openrtb.Bid{ID: `bid-11`}},
},
bidIDs: []string{`bid-11`},
price: 10,
nDealBids: 0,
},
&highestCombination{
{
bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-21`}},
{Bid: &openrtb.Bid{ID: `bid-21`}},
},
bidIDs: []string{`bid-21`},
price: 20,
nDealBids: 0,
},
&highestCombination{
{
bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-31`}},
{Bid: &openrtb.Bid{ID: `bid-31`}},
},
bidIDs: []string{`bid-31`},
price: 10,
nDealBids: 0,
},
&highestCombination{
{
bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-41`}},
{Bid: &openrtb.Bid{ID: `bid-41`}},
},
bidIDs: []string{`bid-41`},
price: 15,
Expand All @@ -217,7 +217,7 @@ func TestAdPodGenerator_getMaxAdPodBid(t *testing.T) {
},
want: &types.AdPodBid{
Bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-21`}},
{Bid: &openrtb.Bid{ID: `bid-21`}},
},
Cat: []string{},
ADomain: []string{},
Expand All @@ -232,33 +232,33 @@ func TestAdPodGenerator_getMaxAdPodBid(t *testing.T) {
},
args: args{
results: []*highestCombination{
&highestCombination{
{
bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-11`}},
{Bid: &openrtb.Bid{ID: `bid-11`}},
},
bidIDs: []string{`bid-11`},
price: 10,
nDealBids: 1,
},
&highestCombination{
{
bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-21`}},
{Bid: &openrtb.Bid{ID: `bid-21`}},
},
bidIDs: []string{`bid-21`},
price: 20,
nDealBids: 1,
},
&highestCombination{
{
bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-31`}},
{Bid: &openrtb.Bid{ID: `bid-31`}},
},
bidIDs: []string{`bid-31`},
price: 10,
nDealBids: 1,
},
&highestCombination{
{
bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-41`}},
{Bid: &openrtb.Bid{ID: `bid-41`}},
},
bidIDs: []string{`bid-41`},
price: 15,
Expand All @@ -268,7 +268,7 @@ func TestAdPodGenerator_getMaxAdPodBid(t *testing.T) {
},
want: &types.AdPodBid{
Bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-21`}},
{Bid: &openrtb.Bid{ID: `bid-21`}},
},
Cat: []string{},
ADomain: []string{},
Expand All @@ -283,33 +283,33 @@ func TestAdPodGenerator_getMaxAdPodBid(t *testing.T) {
},
args: args{
results: []*highestCombination{
&highestCombination{
{
bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-11`}},
{Bid: &openrtb.Bid{ID: `bid-11`}},
},
bidIDs: []string{`bid-11`},
price: 10,
nDealBids: 2,
},
&highestCombination{
{
bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-21`}},
{Bid: &openrtb.Bid{ID: `bid-21`}},
},
bidIDs: []string{`bid-21`},
price: 20,
nDealBids: 1,
},
&highestCombination{
{
bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-31`}},
{Bid: &openrtb.Bid{ID: `bid-31`}},
},
bidIDs: []string{`bid-31`},
price: 10,
nDealBids: 3,
},
&highestCombination{
{
bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-41`}},
{Bid: &openrtb.Bid{ID: `bid-41`}},
},
bidIDs: []string{`bid-41`},
price: 15,
Expand All @@ -319,7 +319,7 @@ func TestAdPodGenerator_getMaxAdPodBid(t *testing.T) {
},
want: &types.AdPodBid{
Bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-31`}},
{Bid: &openrtb.Bid{ID: `bid-31`}},
},
Cat: []string{},
ADomain: []string{},
Expand All @@ -334,33 +334,33 @@ func TestAdPodGenerator_getMaxAdPodBid(t *testing.T) {
},
args: args{
results: []*highestCombination{
&highestCombination{
{
bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-11`}},
{Bid: &openrtb.Bid{ID: `bid-11`}},
},
bidIDs: []string{`bid-11`},
price: 10,
nDealBids: 2,
},
&highestCombination{
{
bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-21`}},
{Bid: &openrtb.Bid{ID: `bid-21`}},
},
bidIDs: []string{`bid-21`},
price: 20,
nDealBids: 0,
},
&highestCombination{
{
bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-31`}},
{Bid: &openrtb.Bid{ID: `bid-31`}},
},
bidIDs: []string{`bid-31`},
price: 10,
nDealBids: 3,
},
&highestCombination{
{
bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-41`}},
{Bid: &openrtb.Bid{ID: `bid-41`}},
},
bidIDs: []string{`bid-41`},
price: 15,
Expand All @@ -370,7 +370,7 @@ func TestAdPodGenerator_getMaxAdPodBid(t *testing.T) {
},
want: &types.AdPodBid{
Bids: []*types.Bid{
&types.Bid{Bid: &openrtb.Bid{ID: `bid-31`}},
{Bid: &openrtb.Bid{ID: `bid-31`}},
},
Cat: []string{},
ADomain: []string{},
Expand Down

0 comments on commit b390e5a

Please sign in to comment.