You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-08-10 22:31:50 +02:00
Fix gosec overflow alerts (#5799)
To allow the golangci-lint upgrade in #5796. --------- Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
This commit is contained in:
@@ -38,6 +38,12 @@ func TestValue(t *testing.T) {
|
||||
wantType: attribute.INT64,
|
||||
wantValue: int64(42),
|
||||
},
|
||||
{
|
||||
name: "Key.Int64() correctly returns negative keys's internal int64 value",
|
||||
value: k.Int64(-42).Value,
|
||||
wantType: attribute.INT64,
|
||||
wantValue: int64(-42),
|
||||
},
|
||||
{
|
||||
name: "Key.Int64Slice() correctly returns keys's internal []int64 value",
|
||||
value: k.Int64Slice([]int64{42, -3, 12}).Value,
|
||||
|
Reference in New Issue
Block a user