Commit e448498ab2a6361261e886a02807a1d03a217ae2
1 parent
b438a951
fix: update
Showing
1 changed file
with
0 additions
and
14 deletions
 
Show diff stats
models/role_test.go
| ... | ... | @@ -6,7 +6,6 @@ import ( | 
| 6 | 6 | "pro2d/common/db/mongoproxy" | 
| 7 | 7 | "pro2d/common/logger" | 
| 8 | 8 | "pro2d/pb" | 
| 9 | - "strconv" | |
| 10 | 9 | "strings" | 
| 11 | 10 | "testing" | 
| 12 | 11 | ) | 
| ... | ... | @@ -126,17 +125,4 @@ func TestRoleModel_IncreByKey(t *testing.T) { | 
| 126 | 125 | ites := strings.SplitN("1=1 2=2 3=3", " ", -1) | 
| 127 | 126 | fmt.Println(ites) | 
| 128 | 127 | |
| 129 | - items := make(IMapString) | |
| 130 | - for _, v := range ites { | |
| 131 | - ii := strings.Split(v, "=") | |
| 132 | - if len(ii) < 2 { | |
| 133 | - continue | |
| 134 | - } | |
| 135 | - n, err := strconv.ParseUint(ii[1], 10, 32) | |
| 136 | - if err != nil { | |
| 137 | - continue | |
| 138 | - } | |
| 139 | - items[ii[0]] = uint32(n) | |
| 140 | - } | |
| 141 | - fmt.Println(items) | |
| 142 | 128 | } | ... | ... |