(t *testing.T)
| 265 | } |
| 266 | |
| 267 | func Test_parseOption(t *testing.T) { |
| 268 | opts := []Option{ |
| 269 | WithDBDriver("foo"), |
| 270 | WithFieldTypes(map[string]string{"foo": "bar"}), |
| 271 | WithCharset("foo"), |
| 272 | WithCollation("foo"), |
| 273 | WithTablePrefix("foo"), |
| 274 | WithColumnPrefix("foo"), |
| 275 | WithJSONTag(1), |
| 276 | WithNoNullType(), |
| 277 | WithNullStyle(1), |
| 278 | WithPackage("model"), |
| 279 | WithGormType(), |
| 280 | WithForceTableName(), |
| 281 | WithEmbed(), |
| 282 | } |
| 283 | o := parseOption(opts) |
| 284 | assert.NotNil(t, o) |
| 285 | } |
| 286 | |
| 287 | func Test_mysqlToGoType(t *testing.T) { |
| 288 | fields := []*types.FieldType{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…