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

Function TestTablet_SetTimestamp

client/tablet_test.go:143–174  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

141}
142
143func TestTablet_SetTimestamp(t *testing.T) {
144 type args struct {
145 timestamp int64
146 rowIndex int
147 }
148 tests := []struct {
149 name string
150 args args
151 want int64
152 }{
153 {
154 name: "",
155 args: args{
156 timestamp: 1608268702769,
157 rowIndex: 0,
158 },
159 want: 1608268702769,
160 },
161 }
162 for _, tt := range tests {
163 t.Run(tt.name, func(t *testing.T) {
164 tablet, err := createTablet(1)
165 if err != nil {
166 t.Error(err)
167 }
168 tablet.SetTimestamp(tt.args.timestamp, tt.args.rowIndex)
169 if got := tablet.timestamps[0]; got != tt.want {
170 t.Errorf("Tablet.SetTimestamp(int64, int32) = %v, want %v", got, tt.want)
171 }
172 })
173 }
174}
175
176func TestTablet_SetValueAt(t *testing.T) {
177 type args struct {

Callers

nothing calls this directly

Calls 3

SetTimestampMethod · 0.80
createTabletFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…