test_doc
函数
test_hikyuu_StockManager

函数

 BOOST_AUTO_TEST_CASE (test_StockManager_size)
 
 BOOST_AUTO_TEST_CASE (test_StockManager_getStock)
 
 BOOST_AUTO_TEST_CASE (test_StockManager_getMarketInfo)
 
 BOOST_AUTO_TEST_CASE (test_StockManager_getStockTypeInfo)
 
 BOOST_AUTO_TEST_CASE (test_StockManager_getAllMarket)
 
 BOOST_AUTO_TEST_CASE (test_StockManager_getBlock)
 
 BOOST_AUTO_TEST_CASE (test_StockManager_TempCsvStock)
 

详细描述

函数说明

BOOST_AUTO_TEST_CASE ( test_StockManager_size  )
检测点
  • 检测是否和测试数据中证券数相符

在文件 test_StockManager.cpp30 行定义.

BOOST_AUTO_TEST_CASE ( test_StockManager_getStock  )
检测点
  • 根据“市场简称证券代码”查询,对应的市场不存在
  • 根据“市场简称证券代码”查询,对应的市场存在,但证券代码不存在
  • 根据“市场简称证券代码”查询正常存在的stock

在文件 test_StockManager.cpp37 行定义.

BOOST_AUTO_TEST_CASE ( test_StockManager_getMarketInfo  )
检测点
  • 查询不存在的市场
  • 查询已存在的市场,市场简称全部大写
  • 查询已存在的市场,市场简称全部小写
  • 查询已存在的市场,市场简称大小写混写

在文件 test_StockManager.cpp67 行定义.

BOOST_AUTO_TEST_CASE ( test_StockManager_getStockTypeInfo  )
检测点
  • 查询不存在的type
  • 查询第一条记录,即type=0
  • 查询最后一条记录,即type=8
  • 查询正常存在信息

在文件 test_StockManager.cpp96 行定义.

BOOST_AUTO_TEST_CASE ( test_StockManager_getAllMarket  )
检测点
  • 检测测试数据中的Market

在文件 test_StockManager.cpp138 行定义.

BOOST_AUTO_TEST_CASE ( test_StockManager_getBlock  )
检测点

在文件 test_StockManager.cpp156 行定义.

BOOST_AUTO_TEST_CASE ( test_StockManager_TempCsvStock  )
检测点
  • 增加临时增加返还的Stock的基本属性
  • 增加临时增加返还的Stock的KRecord[0](第一个数据)读取
  • 增加临时增加返还的Stock的KRecord[10](中间的数据)读取
  • 增加临时增加返还的Stock的KRecord[99](最后一个数据)读取
  • 使用getStock获取临时加入的Stock
  • 使用getStock获取临时加入的Stock的KRecord[10]读取
  • 删除临时加入的Stock

在文件 test_StockManager.cpp169 行定义.