Files
EdgeAPI/internal/db/models/http_header_policy_dao_test.go

19 lines
367 B
Go
Raw Permalink Normal View History

2020-09-16 20:29:18 +08:00
package models
import (
2024-07-27 14:15:25 +08:00
"testing"
2020-09-16 20:29:18 +08:00
_ "github.com/go-sql-driver/mysql"
"github.com/iwind/TeaGo/dbs"
2020-09-16 20:29:18 +08:00
)
func TestHTTPHeaderPolicyDAO_FindHeaderPolicyIdWithHeaderId(t *testing.T) {
dbs.NotifyReady()
var tx *dbs.Tx
policyId, err := SharedHTTPHeaderPolicyDAO.FindHeaderPolicyIdWithHeaderId(tx, 15)
if err != nil {
t.Fatal(err)
}
t.Log("policyId:", policyId)
}