mirror of
https://github.com/nikdoof/vsphere-influxdb-go.git
synced 2025-12-19 05:29:21 +00:00
add vendoring with go dep
This commit is contained in:
17
vendor/github.com/influxdata/influxdb/models/points_internal_test.go
generated
vendored
Normal file
17
vendor/github.com/influxdata/influxdb/models/points_internal_test.go
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestMarshalPointNoFields(t *testing.T) {
|
||||
points, err := ParsePointsString("m,k=v f=0i")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
// It's unclear how this can ever happen, but we've observed points that were marshalled without any fields.
|
||||
points[0].(*point).fields = []byte{}
|
||||
|
||||
if _, err := points[0].MarshalBinary(); err != ErrPointMustHaveAField {
|
||||
t.Fatalf("got error %v, exp %v", err, ErrPointMustHaveAField)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user