From 21cd9e139814b41a7855c6c2d661a90d107acbd2 Mon Sep 17 00:00:00 2001
From: Ales Pour <ales.pour@bonitoo.io>
Date: Thu, 22 Aug 2024 13:51:17 +0200
Subject: [PATCH] test: add test

---
 influxdb3/point_test.go | 7 +++++++
 1 file changed, 7 insertions(+)

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")
+}