Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db12e4f

Browse files
committed
排行bugfix
1 parent 1a1a4e8 commit db12e4f

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

src/logic/rank_test.go

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Copyright 2016 The StudyGolang Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
// http://studygolang.com
5+
// Author: polaris [email protected]
6+
7+
package logic_test
8+
9+
import (
10+
"logic"
11+
"model"
12+
"testing"
13+
)
14+
15+
func TestGenRank(t *testing.T) {
16+
needRankTypes := []int{
17+
model.TypeTopic,
18+
model.TypeResource,
19+
model.TypeProject,
20+
model.TypeArticle,
21+
model.TypeBook,
22+
}
23+
24+
for _, objtype := range needRankTypes {
25+
logic.DefaultRank.GenWeekRank(objtype)
26+
logic.DefaultRank.GenMonthRank(objtype)
27+
}
28+
}

src/vendor/manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@
293293
{
294294
"importpath": "github.com/polaris1119/nosql",
295295
"repository": "https://github.com/polaris1119/nosql",
296-
"revision": "5fdf0907446a240593948746a1640f7b677b2fba",
296+
"revision": "e7f9f23ddcb139ce9e10fae8196db1a624a61b36",
297297
"branch": "master"
298298
},
299299
{

0 commit comments

Comments
 (0)