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

Function TestTablet_SetValueAt

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

Source from the content-addressed store, hash-verified

174}
175
176func TestTablet_SetValueAt(t *testing.T) {
177 type args struct {
178 value interface{}
179 columnIndex int
180 rowIndex int
181 }
182 tests := []struct {
183 name string
184 args args
185 wantErr bool
186 }{
187 {
188 name: "nil",
189 args: args{
190 value: nil,
191 columnIndex: 0,
192 rowIndex: 0,
193 },
194 wantErr: false,
195 }, {
196 name: "columnIndex-1",
197 args: args{
198 value: 0,
199 columnIndex: -1,
200 rowIndex: 0,
201 },
202 wantErr: true,
203 }, {
204 name: "rowIndex-1",
205 args: args{
206 value: 0,
207 columnIndex: 0,
208 rowIndex: -1,
209 },
210 wantErr: true,
211 }, {
212 name: "rowIndex-65535",
213 args: args{
214 value: 0,
215 columnIndex: 0,
216 rowIndex: 65535,
217 },
218 wantErr: true,
219 }, {
220 name: "columnIndex-65535",
221 args: args{
222 value: 0,
223 columnIndex: 65535,
224 rowIndex: 0,
225 },
226 wantErr: true,
227 }, {
228 name: "restart_count",
229 args: args{
230 value: int32(0),
231 columnIndex: 0,
232 rowIndex: 0,
233 },

Callers

nothing calls this directly

Calls 3

SetValueAtMethod · 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…