(t *testing.T)
| 195 | } |
| 196 | |
| 197 | func TestBoolArrayScanEmpty(t *testing.T) { |
| 198 | var arr BoolArray |
| 199 | err := arr.Scan(`{}`) |
| 200 | |
| 201 | if err != nil { |
| 202 | t.Fatalf("Expected no error, got %v", err) |
| 203 | } |
| 204 | if arr == nil || len(arr) != 0 { |
| 205 | t.Errorf("Expected empty, got %#v", arr) |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | func TestBoolArrayScanNil(t *testing.T) { |
| 210 | arr := BoolArray{true, true, true} |
nothing calls this directly
no test coverage detected
searching dependent graphs…