(t *testing.T)
| 231 | } |
| 232 | |
| 233 | func TestBoolArrayScanBytes(t *testing.T) { |
| 234 | for _, tt := range BoolArrayStringTests { |
| 235 | bytes := []byte(tt.str) |
| 236 | arr := BoolArray{true, true, true} |
| 237 | err := arr.Scan(bytes) |
| 238 | |
| 239 | if err != nil { |
| 240 | t.Fatalf("Expected no error for %q, got %v", bytes, err) |
| 241 | } |
| 242 | if !reflect.DeepEqual(arr, tt.arr) { |
| 243 | t.Errorf("Expected %+v for %q, got %+v", tt.arr, bytes, arr) |
| 244 | } |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | func BenchmarkBoolArrayScanBytes(b *testing.B) { |
| 249 | var a BoolArray |
nothing calls this directly
no test coverage detected
searching dependent graphs…