(t *testing.T)
| 22 | ) |
| 23 | |
| 24 | func TestDatabaseParseURL(t *testing.T) { |
| 25 | a := assert.New(t) |
| 26 | driver, dataSource, e := ParseURL(GetTestingMySQLURL()) |
| 27 | a.EqualValues(driver, "mysql") |
| 28 | a.EqualValues(dataSource, fmt.Sprintf("%s:%s@%s(%s)/?maxAllowedPacket=0", |
| 29 | GetTestingMySQLConfig().User, GetTestingMySQLConfig().Passwd, GetTestingMySQLConfig().Net, GetTestingMySQLConfig().Addr)) |
| 30 | a.NoError(e) |
| 31 | } |
| 32 | |
| 33 | func TestDatabaseDriverList(t *testing.T) { |
| 34 | a := assert.New(t) |
nothing calls this directly
no test coverage detected