(t *testing.T)
| 99 | } |
| 100 | |
| 101 | func TestWithOptions(t *testing.T) { |
| 102 | c := &converter{} |
| 103 | _, mock, err := New(ValueConverterOption(c)) |
| 104 | if err != nil { |
| 105 | t.Errorf("expected no error, but got: %s", err) |
| 106 | } |
| 107 | smock, _ := mock.(*sqlmock) |
| 108 | if smock.converter.(*converter) != c { |
| 109 | t.Errorf("expected a custom converter to be set") |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | func TestWrongDSN(t *testing.T) { |
| 114 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…