Skip to content

Commit

Permalink
test[platon][#1376]:Modify function name
Browse files Browse the repository at this point in the history
  • Loading branch information
zzqAlex committed Feb 15, 2023
1 parent 29ec3bb commit a4aac43
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/IT/linuxDefault/network/PlatonNetwork/01platonNetwork.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ START_TEST(test_001platonNetwork_0001CreateOneTimeNetworkSuccess)
rtnVal = getPlatONNetworkConfig(&network_config, chainID, BOAT_FALSE, demoUrl_1);
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
/* create onetime network , store type must be RAM */
rtnVal = BoatPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
rtnVal = BoATPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
/* check index of onetime network , the index must equal 0 */
ck_assert_int_eq(rtnVal, 0);
/* get network data by index , index = 0 */
Expand Down Expand Up @@ -119,7 +119,7 @@ START_TEST(test_001platonNetwork_0002CreatePersistNetworkSuccess)
rtnVal = getPlatONNetworkConfig(&network_config, chainID, BOAT_FALSE, demoUrl_2);
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
/* create persist network , store type must be FLASH */
rtnVal = BoatPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
rtnVal = BoATPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
/* check index of persist network ,this is the first persist network ,
so the index must be 1 */
ck_assert_int_eq(rtnVal, 1);
Expand Down Expand Up @@ -156,7 +156,7 @@ START_TEST(test_001platonNetwork_0003DeleteOneTimeNetworkSuccess)
rtnVal = getPlatONNetworkConfig(&network_config, chainID, BOAT_FALSE, demoUrl_1);
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
/* create onetime network , store type must be RAM */
rtnVal = BoatPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
rtnVal = BoATPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
/* check index of onetime network , the index must equal 0 */
ck_assert_int_eq(rtnVal, 0);
/* delete the onetime network */
Expand Down Expand Up @@ -186,7 +186,7 @@ START_TEST(test_001platonNetwork_0004DeletePersistNetworkSuccess)
rtnVal = getPlatONNetworkConfig(&network_config, chainID, BOAT_FALSE, demoUrl_1);
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
/* create persist network , store type must be FLASH */
rtnVal = BoatPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
rtnVal = BoATPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
/* check index of persist network , the index from 1 to BOAT_MAX_NETWORK_NUM
this is the first persist network ,so the index must be 1 */
ck_assert_int_eq(rtnVal, 1);
Expand Down Expand Up @@ -298,7 +298,7 @@ START_TEST(test_001platonNetwork_0009GetNetworkList_OnlyOnetimeNetwork)
rtnVal = getPlatONNetworkConfig(&network_config, chainID, BOAT_FALSE, demoUrl_1);
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
/* create onetime network , store type must be RAM */
rtnVal = BoatPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
rtnVal = BoATPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
/* check index of onetime network , the index must equal 0 */
ck_assert_int_eq(rtnVal, 0);
/* get the network list */
Expand Down Expand Up @@ -335,15 +335,15 @@ START_TEST(test_001platonNetwork_0010GetNetworkList_OnetimeAndPersistNetwork)
rtnVal = getPlatONNetworkConfig(&network_config, chainID, BOAT_FALSE, demoUrl_1);
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
/* create onetime network , store type must be RAM */
rtnVal = BoatPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
rtnVal = BoATPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
/* check index of onetime network , the index must equal 0 */
ck_assert_int_eq(rtnVal, 0);
/* creat a persist network*/
/* get configuration */
rtnVal = getPlatONNetworkConfig(&network_config, chainID, BOAT_FALSE, demoUrl_2);
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
/* create persist network , store type must be FLASH */
rtnVal = BoatPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
rtnVal = BoATPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
/* check index of persist network ;
index of persist networks is form 1 to BOAT_MAX_NETWORK_NUM,
this is the first persist network, the index must equal 1 */
Expand Down Expand Up @@ -430,15 +430,15 @@ START_TEST(test_001platonNetwork_0013GetNetworkByIndex_Onetime)
rtnVal = getPlatONNetworkConfig(&network_config, chainID, BOAT_FALSE, demoUrl_1);
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
/* create onetime network , store type must be RAM */
rtnVal = BoatPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
rtnVal = BoATPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
/* check index of onetime network , the index must equal 0 */
ck_assert_int_eq(rtnVal, 0);
/* creat a persist network*/
/* get configuration */
rtnVal = getPlatONNetworkConfig(&network_config, chainID, BOAT_FALSE, demoUrl_2);
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
/* create persist network , store type must be FLASH */
rtnVal = BoatPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
rtnVal = BoATPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
/* check index of persist network ;
index of persist networks is form 1 to BOAT_MAX_NETWORK_NUM,
this is the first persist network, the index must equal 1 */
Expand Down Expand Up @@ -478,15 +478,15 @@ START_TEST(test_001platonNetwork_0014GetNetworkByIndex_Persist)
rtnVal = getPlatONNetworkConfig(&network_config, chainID, BOAT_FALSE, demoUrl_1);
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
/* create onetime network , store type must be RAM */
rtnVal = BoatPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
rtnVal = BoATPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_RAM);
/* check index of onetime network , the index must equal 0 */
ck_assert_int_eq(rtnVal, 0);
/* creat a persist network*/
/* get configuration */
rtnVal = getPlatONNetworkConfig(&network_config, chainID, BOAT_FALSE, demoUrl_2);
ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
/* create persist network , store type must be FLASH */
rtnVal = BoatPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
rtnVal = BoATPlatONNetworkCreate(&network_config, BOAT_STORE_TYPE_FLASH);
/* check index of persist network ;
index of persist networks is form 1 to BOAT_MAX_NETWORK_NUM,
this is the first persist network, the index must equal 1 */
Expand Down

0 comments on commit a4aac43

Please sign in to comment.