Skip to content

Commit

Permalink
Address SyntaxNode comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
scr-oath committed Nov 22, 2024
1 parent 639a1cf commit 4af0b37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openrtb_ext/request_wrapper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2345,14 +2345,14 @@ func TestRegExtUnmarshal(t *testing.T) {
expectError: false,
},
{
name: `valid_gpc_json "1"`,
name: `valid_gpc_json_"1"`,
regExt: &RegExt{},
extJson: json.RawMessage(`{"gpc": "1"}`),
expectGPC: ptrutil.ToPtr("1"),
expectError: false,
},
{
name: `valid_gpc_json 1`,
name: `valid_gpc_json_1`,
regExt: &RegExt{},
extJson: json.RawMessage(`{"gpc": 1}`),
expectGPC: ptrutil.ToPtr("1"),
Expand Down Expand Up @@ -2391,6 +2391,7 @@ func TestRegExtUnmarshal(t *testing.T) {
assert.Equal(t, tt.expectDSA, tt.regExt.dsa)
assert.Equal(t, tt.expectGDPR, tt.regExt.gdpr)
assert.Equal(t, tt.expectUSPrivacy, tt.regExt.usPrivacy)
assert.Equal(t, tt.expectGPC, tt.regExt.gpc)
})
}
}
Expand Down

0 comments on commit 4af0b37

Please sign in to comment.