- policies := []string{"hello","welcome"}
- rmrpush.send_data(rtmgr.Eps["localhost"],&policies,1)
+ policies := []string{"hello", "welcome"}
+ rmrpush.send_data(rtmgr.Eps["localhost"], &policies, 1)
+}
+
+func TestString(t *testing.T) {
+ var params xapp.RMRParams
+ params.Payload = []byte("abcdefgh")
+ params.Meid = &xapp.RMRMeid{}
+ msg := RMRParams{¶ms}
+ msg.String()
+
+}
+
+func TestSenddata(t *testing.T) {
+ var rmrpush = RmrPush{}
+ ep := rtmgr.Endpoint{Whid: -1, Ip: "1.1.1.1"}
+ policies := []string{"mse|12345|-1|local.com"}
+ rmrpush.send_data(&ep, &policies, 300)
+}
+
+func TestSendDynamicdata(t *testing.T) {
+ var rmrpush = RmrPush{}
+ ep := "1.1.1.1"
+ policies := []string{"mse|12345|-1|local.com"}
+ rmrpush.sendDynamicRoutes(ep, 1, &policies, 300)