Files
EdgeAPI/internal/db/models/http_header_policy_dao_test.go
2021-01-17 16:48:00 +08:00

18 lines
366 B
Go

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