Skip to content

Commit

Permalink
test: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
alespour committed Aug 22, 2024
1 parent c5bd7b7 commit 21cd9e1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions influxdb3/point_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,10 @@ func TestPoint_SetTimestamp(t *testing.T) {
p.SetTimestampWithEpoch(99)
assert.Equal(t, time.Unix(0, 99), p.Values.Timestamp)
}

func TestFromValuesMissingMeasurement(t *testing.T) {
values := &PointValues{}
_, err := FromValues(values)
assert.Error(t, err)
assert.ErrorContains(t, err, "missing measurement")
}

0 comments on commit 21cd9e1

Please sign in to comment.