Files
EdgeAPI/internal/db/models/http_header_policy_dao_test.go
GoEdgeLab 5a17ae9d79 v1.4.1
2024-07-27 14:15:25 +08:00

19 lines
367 B
Go

package models
import (
"testing"
_ "github.com/go-sql-driver/mysql"
"github.com/iwind/TeaGo/dbs"
)
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)
}