1
0
mirror of https://gitee.com/willfree/mlsr.git synced 2026-06-08 22:19:27 +08:00
Files
mlsr/route/RoutingTablePoolEntry_test.go
T
2022-06-24 21:49:51 +08:00

46 lines
1.0 KiB
Go

// Package route
// @Author: Wang Feng
// @Description:
// @Version: 0.1.0
// @Date: 2022/6/24 21:44
// @Copyright: MIN-Group;国家重大科技基础设施——未来网络北大实验室;深圳市信息论与未来网络重点实验室
//
package route
import (
"fmt"
"minlib/component"
"testing"
)
//
// TestRoutingTablePoolEntry_Init
// @Description: 测试初始化
// @param t
//
func TestRoutingTablePoolEntry_Init(t *testing.T) {
iden, _ := component.CreateIdentifierByString("/ifIhaveAnotherChance")
rtpe := new(RoutingTablePoolEntry)
rtpe.Init(iden)
// 打印
fmt.Println(rtpe.m_useCount)
fmt.Println(rtpe.m_destination.ToUri())
}
//
// TestRoutingTablePoolEntry_InitDest
// @Description: 测试初始化
// @param t
//
func TestRoutingTablePoolEntry_InitDest(t *testing.T) {
iden, _ := component.CreateIdentifierByString("/ifIhaveAnotherChance")
rtpe := new(RoutingTablePoolEntry)
rtpe.InitDest(iden, 123)
// 打印
fmt.Println(rtpe.m_useCount)
fmt.Println(rtpe.m_destination.ToUri())
}