1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2026-06-03 18:35:08 +02:00

test: add test case for ByteSlice in TestValueFromAttribute (#8168)

Address
https://github.com/open-telemetry/opentelemetry-go/pull/7948#discussion_r3058364850
This commit is contained in:
Robert Pająk
2026-04-10 15:02:31 +02:00
committed by GitHub
parent ace6b2479e
commit 99d4d7b2f8
+5
View File
@@ -361,6 +361,11 @@ func TestValueFromAttribute(t *testing.T) {
v: attribute.StringSliceValue([]string{"foo", "bar"}),
want: log.SliceValue(log.StringValue("foo"), log.StringValue("bar")),
},
{
desc: "ByteSlice",
v: attribute.ByteSliceValue([]byte("foo")),
want: log.BytesValue([]byte("foo")),
},
}
for _, tc := range testCases {
t.Run(tc.desc, func(t *testing.T) {