[chainmaker][#436]add tests test_03Contract_0005InvokeFailureReponseNull
@@ -169,6 +169,20 @@ START_TEST(test_03Contract_0004InvokeFailureContractNoExist)
}
END_TEST
+START_TEST(test_03Contract_0005InvokeFailureReponseNull)
+{
+ BOAT_RESULT result;
+ BoatHlchainmakerTx tx_ptr;
+ BoatInvokeReponse invoke_reponse;
+
+ result = test_contrct_invoke_prepara(&tx_ptr);
+ ck_assert_int_eq(result, BOAT_SUCCESS);
+
+ result = BoatHlchainmakerContractInvoke(&tx_ptr, "save", "test", true, NULL); ;
+ ck_assert(result == BOAT_ERROR_INVALID_ARGUMENT);
+}
+END_TEST
+
Suite *make_contract_suite(void)
{
/* Create Suite */
@@ -184,6 +198,7 @@ Suite *make_contract_suite(void)
tcase_add_test(tc_contract_api, test_03Contract_0002InvokeFailureMethodNull);
tcase_add_test(tc_contract_api, test_03Contract_0003InvokeFailureContractNull);
tcase_add_test(tc_contract_api, test_03Contract_0004InvokeFailureContractNoExist);
+ tcase_add_test(tc_contract_api, test_03Contract_0005InvokeFailureReponseNull);
return s_contract;
}
