File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,11 @@ func init() {
97
97
}
98
98
}
99
99
100
+ // DriverName return driver name
101
+ func DriverName () string {
102
+ return driverName
103
+ }
104
+
100
105
// NewConnector returns new driver.Connector.
101
106
func NewConnector (cfg * Config ) (driver.Connector , error ) {
102
107
cfg = cfg .Clone ()
Original file line number Diff line number Diff line change @@ -3353,6 +3353,13 @@ func configForTests(t *testing.T) *Config {
3353
3353
return mycnf
3354
3354
}
3355
3355
3356
+ func TestName (t * testing.T ) {
3357
+ dn := DriverName ()
3358
+ if dn != driverName {
3359
+ t .Errorf ("driver name is incorrect, got: %s" , dn )
3360
+ }
3361
+ }
3362
+
3356
3363
func TestNewConnector (t * testing.T ) {
3357
3364
mycnf := configForTests (t )
3358
3365
conn , err := NewConnector (mycnf )
You can’t perform that action at this time.
0 commit comments