(t *testing.T)
| 141 | } |
| 142 | |
| 143 | func 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 | |
| 176 | func TestTablet_SetValueAt(t *testing.T) { |
| 177 | type args struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…