gitee.com/quant1x/engine@v1.8.4/cache/cache_test.go (about)

     1  package cache
     2  
     3  import (
     4  	"fmt"
     5  	"testing"
     6  )
     7  
     8  func TestFilename(t *testing.T) {
     9  	date := "2023-09-28"
    10  	code := "sh600105"
    11  	filename := QuarterlyReportFilename(code, date)
    12  	fmt.Println(filename)
    13  }
    14  
    15  //// import "github.com/syndtr/goleveldb/leveldb"
    16  //func TestLevelDB(t *testing.T) {
    17  //	db, err := leveldb.OpenFile("t1.db", nil)
    18  //	if err != nil {
    19  //		fmt.Println(err)
    20  //		return
    21  //	}
    22  //	defer db.Close()
    23  //	db.Put([]byte("a"), []byte("1"), nil)
    24  //}