MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / TestTablet_GetNilValueAt

Function TestTablet_GetNilValueAt

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

Source from the content-addressed store, hash-verified

439}
440
441func TestTablet_GetNilValueAt(t *testing.T) {
442 type args struct {
443 columnIndex int
444 rowIndex int
445 }
446 tests := []struct {
447 name string
448 args args
449 want interface{}
450 wantErr bool
451 }{
452 {
453 name: "INT32",
454 args: args{
455 columnIndex: 0,
456 rowIndex: 0,
457 },
458 want: int32(256),
459 wantErr: false,
460 }, {
461 name: "FLOAT64",
462 args: args{
463 columnIndex: 1,
464 rowIndex: 0,
465 },
466 want: nil,
467 wantErr: false,
468 }, {
469 name: "INT64",
470 args: args{
471 columnIndex: 2,
472 rowIndex: 0,
473 },
474 want: int64(65535),
475 wantErr: false,
476 }, {
477 name: "FLOAT32",
478 args: args{
479 columnIndex: 3,
480 rowIndex: 0,
481 },
482 want: float32(36.5),
483 wantErr: false,
484 }, {
485 name: "STRING",
486 args: args{
487 columnIndex: 4,
488 rowIndex: 0,
489 },
490 want: "Hello World!",
491 wantErr: false,
492 }, {
493 name: "BOOLEAN",
494 args: args{
495 columnIndex: 5,
496 rowIndex: 0,
497 },
498 want: true,

Callers

nothing calls this directly

Calls 3

SetValueAtMethod · 0.80
GetValueAtMethod · 0.80
createTabletFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…