mirror of
https://github.com/hanzoai/xorm.git
synced 2026-10-01 00:49:40 +00:00
17 lines
460 B
Go
17 lines
460 B
Go
// Copyright 2026 The Xorm Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package utils
|
|
|
|
import "testing"
|
|
|
|
func TestIndexNameAndSeqName(t *testing.T) {
|
|
if name := IndexName("user", "email"); name != "IDX_user_email" {
|
|
t.Fatalf("unexpected index name: %s", name)
|
|
}
|
|
if name := SeqName("user"); name != "SEQ_USER" {
|
|
t.Fatalf("unexpected sequence name: %s", name)
|
|
}
|
|
}
|