MCPcopy Index your code
hub / github.com/apache/iotdb-client-go / createTablet

Function createTablet

client/tablet_test.go:28–68  ·  view source on GitHub ↗
(size int)

Source from the content-addressed store, hash-verified

26)
27
28func createTablet(size int) (*Tablet, error) {
29 tablet, err := NewTablet("root.ln.TestDevice", []*MeasurementSchema{
30 {
31 Measurement: "restart_count",
32 DataType: INT32,
33 }, {
34 Measurement: "price",
35 DataType: DOUBLE,
36 }, {
37 Measurement: "tick_count",
38 DataType: INT64,
39 }, {
40 Measurement: "temperature",
41 DataType: FLOAT,
42 }, {
43 Measurement: "description",
44 DataType: TEXT,
45 },
46 {
47 Measurement: "status",
48 DataType: BOOLEAN,
49 },
50 {
51 Measurement: "description_string",
52 DataType: STRING,
53 },
54 {
55 Measurement: "description_blob",
56 DataType: BLOB,
57 },
58 {
59 Measurement: "date",
60 DataType: DATE,
61 },
62 {
63 Measurement: "ts",
64 DataType: TIMESTAMP,
65 },
66 }, size)
67 return tablet, err
68}
69
70func TestTablet_getDataTypes(t *testing.T) {
71 type fields struct {

Callers 5

TestTablet_SetTimestampFunction · 0.70
TestTablet_SetValueAtFunction · 0.70
TestTablet_GetValueAtFunction · 0.70
TestTablet_GetNilValueAtFunction · 0.70
TestTablet_SortFunction · 0.70

Calls 1

NewTabletFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…