Skip to content

Commit

Permalink
fix renamed methods calls
Browse files Browse the repository at this point in the history
  • Loading branch information
dmathieu committed Jul 26, 2023
1 parent 3e77841 commit 6f6bcaa
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
10 changes: 5 additions & 5 deletions codec/fullevent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func fullEvent(t *testing.B) *modelpb.APMEvent {
Value: []string{"bar"},
},
},
AgeMillis: int64Ptr(2),
AgeMillis: uint64Ptr(2),
QueueName: "queuename",
RoutingKey: "routingkey",
},
Expand Down Expand Up @@ -158,7 +158,7 @@ func fullEvent(t *testing.B) *modelpb.APMEvent {
Value: []string{"bar"},
},
},
AgeMillis: int64Ptr(2),
AgeMillis: uint64Ptr(2),
QueueName: "queuename",
RoutingKey: "routingkey",
},
Expand Down Expand Up @@ -367,9 +367,9 @@ func fullEvent(t *testing.B) *modelpb.APMEvent {
Headers: randomHTTPHeaders(t),
Finished: boolPtr(true),
HeadersSent: boolPtr(true),
TransferSize: int64Ptr(1),
EncodedBodySize: int64Ptr(2),
DecodedBodySize: int64Ptr(3),
TransferSize: uint64Ptr(1),
EncodedBodySize: uint64Ptr(2),
DecodedBodySize: uint64Ptr(3),
StatusCode: 200,
},
Version: "version",
Expand Down
10 changes: 5 additions & 5 deletions input/elasticapm/internal/modeldecoder/v2/metricset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func TestDecodeMapToMetricsetModel(t *testing.T) {
Unit: defaultVal.Str,
Value: defaultVal.Float,
Histogram: &modelpb.Histogram{
Counts: repeatInt64(uint64(defaultVal.Int), defaultVal.N),
Counts: repeatUint64(uint64(defaultVal.Int), defaultVal.N),
Values: repeatFloat64(defaultVal.Float, defaultVal.N),
},
},
Expand All @@ -150,7 +150,7 @@ func TestDecodeMapToMetricsetModel(t *testing.T) {
Unit: defaultVal.Str,
Value: defaultVal.Float,
Histogram: &modelpb.Histogram{
Counts: repeatInt64(uint64(defaultVal.Int), defaultVal.N),
Counts: repeatUint64(uint64(defaultVal.Int), defaultVal.N),
Values: repeatFloat64(defaultVal.Float, defaultVal.N),
},
},
Expand All @@ -160,7 +160,7 @@ func TestDecodeMapToMetricsetModel(t *testing.T) {
Unit: defaultVal.Str,
Value: defaultVal.Float,
Histogram: &modelpb.Histogram{
Counts: repeatInt64(uint64(defaultVal.Int), defaultVal.N),
Counts: repeatUint64(uint64(defaultVal.Int), defaultVal.N),
Values: repeatFloat64(defaultVal.Float, defaultVal.N),
},
},
Expand All @@ -185,7 +185,7 @@ func TestDecodeMapToMetricsetModel(t *testing.T) {
Unit: otherVal.Str,
Value: otherVal.Float,
Histogram: &modelpb.Histogram{
Counts: repeatInt64(uint64(otherVal.Int), otherVal.N),
Counts: repeatUint64(uint64(otherVal.Int), otherVal.N),
Values: repeatFloat64(otherVal.Float, otherVal.N),
},
},
Expand All @@ -195,7 +195,7 @@ func TestDecodeMapToMetricsetModel(t *testing.T) {
Unit: otherVal.Str,
Value: otherVal.Float,
Histogram: &modelpb.Histogram{
Counts: repeatInt64(uint64(otherVal.Int), otherVal.N),
Counts: repeatUint64(uint64(otherVal.Int), otherVal.N),
Values: repeatFloat64(otherVal.Float, otherVal.N),
},
},
Expand Down
10 changes: 5 additions & 5 deletions model/modelpb/apmevent.pb.json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func fullEvent(t testing.TB) *APMEvent {
Value: []string{"bar"},
},
},
AgeMillis: int64Ptr(2),
AgeMillis: uint64Ptr(2),
QueueName: "queuename",
RoutingKey: "routingkey",
},
Expand Down Expand Up @@ -176,7 +176,7 @@ func fullEvent(t testing.TB) *APMEvent {
Value: []string{"bar"},
},
},
AgeMillis: int64Ptr(2),
AgeMillis: uint64Ptr(2),
QueueName: "queuename",
RoutingKey: "routingkey",
},
Expand Down Expand Up @@ -385,9 +385,9 @@ func fullEvent(t testing.TB) *APMEvent {
Headers: randomHTTPHeaders(t),
Finished: boolPtr(true),
HeadersSent: boolPtr(true),
TransferSize: int64Ptr(1),
EncodedBodySize: int64Ptr(2),
DecodedBodySize: int64Ptr(3),
TransferSize: uint64Ptr(1),
EncodedBodySize: uint64Ptr(2),
DecodedBodySize: uint64Ptr(3),
StatusCode: 200,
},
Version: "version",
Expand Down
24 changes: 12 additions & 12 deletions model/modelpb/http.pb.json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,19 @@ func TestHTTPToModelJSON(t *testing.T) {
Headers: headers2,
Finished: &tru,
HeadersSent: &tru,
TransferSize: int64Ptr(1),
EncodedBodySize: int64Ptr(2),
DecodedBodySize: int64Ptr(3),
TransferSize: uint64Ptr(1),
EncodedBodySize: uint64Ptr(2),
DecodedBodySize: uint64Ptr(3),
StatusCode: 200,
},
},
expected: &modeljson.HTTP{
Response: &modeljson.HTTPResponse{
Finished: &tru,
HeadersSent: &tru,
TransferSize: int64Ptr(1),
EncodedBodySize: int64Ptr(2),
DecodedBodySize: int64Ptr(3),
TransferSize: uint64Ptr(1),
EncodedBodySize: uint64Ptr(2),
DecodedBodySize: uint64Ptr(3),
Headers: headersMap2,
StatusCode: 200,
},
Expand Down Expand Up @@ -126,9 +126,9 @@ func TestHTTPToModelJSON(t *testing.T) {
Headers: headers2,
Finished: &tru,
HeadersSent: &tru,
TransferSize: int64Ptr(1),
EncodedBodySize: int64Ptr(2),
DecodedBodySize: int64Ptr(3),
TransferSize: uint64Ptr(1),
EncodedBodySize: uint64Ptr(2),
DecodedBodySize: uint64Ptr(3),
StatusCode: 200,
},
Version: "version",
Expand All @@ -145,9 +145,9 @@ func TestHTTPToModelJSON(t *testing.T) {
Response: &modeljson.HTTPResponse{
Finished: &tru,
HeadersSent: &tru,
TransferSize: int64Ptr(1),
EncodedBodySize: int64Ptr(2),
DecodedBodySize: int64Ptr(3),
TransferSize: uint64Ptr(1),
EncodedBodySize: uint64Ptr(2),
DecodedBodySize: uint64Ptr(3),
Headers: headersMap2,
StatusCode: 200,
},
Expand Down

0 comments on commit 6f6bcaa

Please sign in to comment.