File tree 2 files changed +29
-1
lines changed 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 293
293
{
294
294
"importpath": "github.com/polaris1119/nosql",
295
295
"repository": "https://github.com/polaris1119/nosql",
296
- "revision": "5fdf0907446a240593948746a1640f7b677b2fba ",
296
+ "revision": "e7f9f23ddcb139ce9e10fae8196db1a624a61b36 ",
297
297
"branch": "master"
298
298
},
299
299
{
You can’t perform that action at this time.
0 commit comments