Skip to content

Commit df8f64a

Browse files
authored
Add tests for Key.Emit() with Int and IntSlice
1 parent bbc3c97 commit df8f64a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎attribute/key_test.go‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ func TestEmit(t *testing.T) {
7878
v: attribute.Int64Value(42),
7979
want: "42",
8080
},
81+
{
82+
name: `test Key.Emit() can emit a string representing self.INT`,
83+
v: attribute.IntValue(7),
84+
want: "7",
85+
},
86+
{
87+
name: `test Key.Emit() can emit a string representing self.INTSLICE`,
88+
v: attribute.IntSliceValue([]int{1, 2, 3}),
89+
want: `[1,2,3]`,
90+
},
8191
{
8292
name: `test Key.Emit() can emit a string representing self.FLOAT64SLICE`,
8393
v: attribute.Float64SliceValue([]float64{1.0, 42.5}),

0 commit comments

Comments
 (0)