Skip to content

Commit

Permalink
extra unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Mar 14, 2022
1 parent c26fa21 commit d488758
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions model/internal/pdata/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package pdata
import (
"encoding/base64"
"fmt"
"math"
"strconv"
"testing"

Expand Down Expand Up @@ -1037,6 +1038,11 @@ func TestAsString(t *testing.T) {
input: NewAttributeValueDouble(.000000009),
expected: "9e-9",
},
{
name: "bad float64",
input: NewAttributeValueDouble(math.Inf(1)),
expected: "json: unsupported value: +Inf",
},
{
name: "boolean",
input: NewAttributeValueBool(true),
Expand Down

0 comments on commit d488758

Please sign in to comment.