File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -2,29 +2,50 @@ package main
2
2
3
3
import (
4
4
"fmt"
5
+ "runtime"
5
6
"testing"
6
7
)
7
8
8
9
func TestGetContributorString (t * testing.T ) {
10
+ if runtime .GOOS != "windows" {
11
+ return
12
+ }
13
+
9
14
str := GetContributorString ()
10
15
fmt .Println (str )
11
16
}
12
17
13
18
func TestGetContributorJosnMarshal (t * testing.T ) {
19
+ if runtime .GOOS != "windows" {
20
+ return
21
+ }
22
+
14
23
str := GetContributorJosnMarshal ("" , " " )
15
24
fmt .Println (str )
16
25
}
17
26
18
27
func TestGetContributorInstance (t * testing.T ) {
28
+ if runtime .GOOS != "windows" {
29
+ return
30
+ }
31
+
19
32
contributors := GetContributorInstance ()
20
33
fmt .Println (contributors )
21
34
}
22
35
23
36
func TestGenerateContributorTemplete (t * testing.T ) {
37
+ if runtime .GOOS != "windows" {
38
+ return
39
+ }
40
+
24
41
GenerateContributorTemplete ()
25
42
}
26
43
27
44
func BenchmarkGetContributorInstance (b * testing.B ) {
45
+ if runtime .GOOS != "windows" {
46
+ return
47
+ }
48
+
28
49
b .N = 2000000
29
50
contributors := GetContributorInstance ()
30
51
fmt .Println (contributors )
You can’t perform that action at this time.
0 commit comments