database-anonymizer/database/database_test.go
2024-03-20 11:42:28 +01:00

15 lines
285 B
Go

package database
import (
"testing"
)
func TestEscapeTable(t *testing.T) {
if EscapeTable("mysql", "foo") != "`foo`" {
t.Fatalf("TestEscapeTable: mysql check failed")
}
if EscapeTable("postgres", "foo") != "\"foo\"" {
t.Fatalf("TestEscapeTable: postgres check failed")
}
}