feat(Go-Tool):

2020/12/31:新增项目案例(角色技能树)
               2020/12/31: 修改diliver包结构
This commit is contained in:
Huangzj
2020-12-31 14:25:25 +08:00
parent 84b5787dd8
commit f3c056f84e
23 changed files with 738 additions and 9 deletions
@@ -0,0 +1,32 @@
/*
* @Author : huangzj
* @Time : 2020/12/29 17:39
* @Description
*/
package SkillTopology
import (
"Go-Tool/ProgressTest/SkillTopology/model"
"fmt"
"testing"
)
func TestDrawSkill(t *testing.T) {
topology := GetCounsellorSkillByDb(NewSkilledWorker(), model.CounsellorId)
DealWithUnLockSkill(topology)
}
func TestUpdateSkill(t *testing.T) {
//测试一个没有达到升级条件的节点7
topology := GetCounsellorSkillByDb(NewSkilledWorker(), model.CounsellorId)
ok := CheckSkillUpdate(topology, 7)
fmt.Println(fmt.Sprintf("技能7是否满足升级条件:%v", ok))
//测试一个可以升级的节点:11
ok = CheckSkillUpdate(topology, 11)
fmt.Println(fmt.Sprintf("技能11是否满足升级条件:%v", ok))
}