File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,9 @@ import (
10
10
)
11
11
12
12
// TestSeriesKC tests no data scenario
13
- //
14
- // t=time.Time (no iteration) | |
15
- // p=ValueSeries | |
16
- // kc=ValueSeries | |
17
13
func TestSeriesKC (t * testing.T ) {
18
14
19
- start := time .Now ()
20
- data := OHLCVTestData (start , 4 , 5 * 60 * 1000 )
15
+ data := OHLCVStaticTestData ()
21
16
22
17
series , err := NewOHLCVSeries (data )
23
18
if err != nil {
@@ -41,19 +36,9 @@ func TestSeriesKC(t *testing.T) {
41
36
}
42
37
43
38
// TestSeriesKCNoIteration tests this sceneario where there's no iteration yet
44
- //
45
- // t=time.Time (no iteration) | 1 | 2 | 3 | 4 |
46
- // p=ValueSeries | 14 | 15 | 17 | 18 |
47
- // kc=ValueSeries | | | | |
48
39
func TestSeriesKCNoIteration (t * testing.T ) {
49
40
50
- start := time .Now ()
51
- data := OHLCVTestData (start , 4 , 5 * 60 * 1000 )
52
- data [0 ].C = 14
53
- data [1 ].C = 15
54
- data [2 ].C = 17
55
- data [3 ].C = 18
56
-
41
+ data := OHLCVStaticTestData ()
57
42
series , err := NewOHLCVSeries (data )
58
43
if err != nil {
59
44
t .Fatal (err )
You can’t perform that action at this time.
0 commit comments