diff --git a/influxdb3/point_test.go b/influxdb3/point_test.go index a0116b1..a3afc13 100644 --- a/influxdb3/point_test.go +++ b/influxdb3/point_test.go @@ -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") +}