11 lines
195 B
Go
11 lines
195 B
Go
package dbutil
|
|
|
|
import "testing"
|
|
|
|
func TestQuoteMySQLIdentifier(t *testing.T) {
|
|
got := QuoteMySQLIdentifier("git`ocean")
|
|
if got != "`git``ocean`" {
|
|
t.Fatalf("unexpected quote: %q", got)
|
|
}
|
|
}
|