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

19 lines
370 B
Go
Raw Normal View History

2020-09-23 10:12:57 +08:00
package models
import (
2024-07-27 14:15:25 +08:00
"testing"
2020-09-23 10:12:57 +08:00
_ "github.com/go-sql-driver/mysql"
"github.com/iwind/TeaGo/dbs"
2020-09-23 10:12:57 +08:00
)
func TestHTTPFirewallRuleGroupDAO_FindRuleGroupIdWithRuleSetId(t *testing.T) {
dbs.NotifyReady()
var tx *dbs.Tx
groupId, err := SharedHTTPFirewallRuleGroupDAO.FindRuleGroupIdWithRuleSetId(tx, 22)
if err != nil {
t.Fatal(err)
}
t.Log("groupId:", groupId)
}