Skip to content

Commit

Permalink
add unit test (key.String) to key api (open-telemetry#260)
Browse files Browse the repository at this point in the history
follow issue open-telemetry#51
  • Loading branch information
clsung authored and rghetia committed Oct 31, 2019
1 parent 8862436 commit 903908d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/key/key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ func TestKeyValueConstructors(t *testing.T) {
Value: core.Float32(123.5),
},
},
{
name: "String",
actual: key.String("k1", "123.5"),
expected: core.KeyValue{
Key: "k1",
Value: core.String("123.5"),
},
},
{
name: "Int",
actual: key.Int("k1", 123),
Expand Down

0 comments on commit 903908d

Please sign in to comment.