You've already forked opentelemetry-go
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user