We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9166da commit 425a783Copy full SHA for 425a783
api/data_to_point_test.go
@@ -200,6 +200,28 @@ func TestDataToPoint(t *testing.T) {
200
},
201
error: `cannot use map[string]interface {} as point`,
202
203
+ {
204
+ name: "test unsupported field type",
205
+ s: &struct {
206
+ Measurement string `lp:"measurement"`
207
+ Temp complex64 `lp:"field,a"`
208
+ }{
209
+ "air",
210
+ complex(1, 1),
211
+ },
212
+ error: `cannot use field 'Temp' of type 'complex64' as to create a point`,
213
214
215
+ name: "test unsupported lp tag value",
216
217
218
+ Temp float64 `lp:"data,a"`
219
220
221
+ 1.0,
222
223
+ error: `invalid tag data`,
224
225
}
226
for _, ts := range tests {
227
t.Run(ts.name, func(t *testing.T) {
0 commit comments