@@ -81,7 +81,7 @@ type AtomicTable struct {
81
81
Str string ` + "`" + `ovsdb:"str"` + "`" + `
82
82
}
83
83
84
- func (a *AtomicTable) Table () string {
84
+ func (a *AtomicTable) GetTableName () string {
85
85
return AtomicTableTable
86
86
}
87
87
` ,
@@ -108,7 +108,7 @@ type AtomicTable struct {
108
108
Str string ` + "`" + `ovsdb:"str"` + "`" + `
109
109
}
110
110
111
- func (a *AtomicTable) Table () string {
111
+ func (a *AtomicTable) GetTableName () string {
112
112
return AtomicTableTable
113
113
}
114
114
` ,
@@ -160,7 +160,7 @@ type AtomicTable struct {
160
160
OtherStr string
161
161
}
162
162
163
- func (a *AtomicTable) Table () string {
163
+ func (a *AtomicTable) GetTableName () string {
164
164
return AtomicTableTable
165
165
}
166
166
` ,
@@ -201,7 +201,7 @@ type AtomicTable struct {
201
201
Str string ` + "`" + `ovsdb:"str"` + "`" + `
202
202
}
203
203
204
- func (a *AtomicTable) Table () string {
204
+ func (a *AtomicTable) GetTableName () string {
205
205
return AtomicTableTable
206
206
}
207
207
@@ -370,7 +370,7 @@ type AtomicTable struct {
370
370
OtherStr string
371
371
}
372
372
373
- func (a *AtomicTable) Table () string {
373
+ func (a *AtomicTable) GetTableName () string {
374
374
return AtomicTableTable
375
375
}
376
376
@@ -503,7 +503,7 @@ type AtomicTable struct {
503
503
Str string ` + "`" + `ovsdb:"str"` + "`" + `
504
504
}
505
505
506
- func (a *AtomicTable) Table () string {
506
+ func (a *AtomicTable) GetTableName () string {
507
507
return AtomicTableTable
508
508
}
509
509
@@ -630,7 +630,7 @@ type AtomicTable struct {
630
630
Str string ` + "`" + `ovsdb:"str"` + "`" + `
631
631
}
632
632
633
- func (a *AtomicTable) Table () string {
633
+ func (a *AtomicTable) GetTableName () string {
634
634
return AtomicTableTable
635
635
}
636
636
@@ -1020,3 +1020,12 @@ func BenchmarkDeepEqual(b *testing.B) {
1020
1020
})
1021
1021
}
1022
1022
}
1023
+
1024
+ func TestGetTableName (t * testing.T ) {
1025
+ bridge := & vswitchd.Bridge {}
1026
+ func (bridge interface {}) {
1027
+ b , ok := bridge .(model.Model )
1028
+ assert .True (t , ok , "is not a model" )
1029
+ assert .Equal (t , b .GetTableName (), "Bridge" )
1030
+ }(bridge )
1031
+ }
0 commit comments