gitee.com/quant1x/engine@v1.8.4/trader/positions_test.go (about) 1 package trader 2 3 import ( 4 "gitee.com/quant1x/engine/models" 5 "testing" 6 ) 7 8 func TestCacheSync(t *testing.T) { 9 barIndex := 1 10 models.SyncAllSnapshots(&barIndex) 11 //UpdatePositions() 12 SyncPositions() 13 CacheSync() 14 }