1 parent bbc3c97 commit df8f64aCopy full SHA for df8f64a
1 file changed
attribute/key_test.go
@@ -78,6 +78,16 @@ func TestEmit(t *testing.T) {
78
v: attribute.Int64Value(42),
79
want: "42",
80
},
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
91
{
92
name: `test Key.Emit() can emit a string representing self.FLOAT64SLICE`,
93
v: attribute.Float64SliceValue([]float64{1.0, 42.5}),
0 commit comments