Commenting the bank-lib "testing" header file.

This commit is contained in:
Marcello Stanisci 2018-05-29 10:34:41 +02:00
parent 5faa541d27
commit 11b3616355
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F
2 changed files with 30 additions and 13 deletions

View File

@ -19,7 +19,7 @@
/** /**
* @file include/taler_testing_bank_lib.h * @file include/taler_testing_bank_lib.h
* @brief API for writing an interpreter to test Taler components * @brief API for writing test cases to test banks.
* @author Marcello Stanisci * @author Marcello Stanisci
*/ */
#ifndef TALER_TESTING_BANK_LIB_H #ifndef TALER_TESTING_BANK_LIB_H
@ -57,6 +57,8 @@
* bank" function to do such tasks. * bank" function to do such tasks.
* *
* @param config_filename configuration filename. * @param config_filename configuration filename.
* @param bank_url base URL of the bank, used by `wget' to check
* that the bank was started right.
* *
* @return the process, or NULL if the process could not * @return the process, or NULL if the process could not
* be started. * be started.
@ -67,7 +69,7 @@ TALER_TESTING_run_bank (const char *config_filename,
/** /**
* Prepare the bank execution. Check if the port is available * Prepare the bank execution. Check if the port is available
* (and reset database?). * and reset database.
* *
* @param config_filename configuration file name. * @param config_filename configuration file name.
* *
@ -78,12 +80,23 @@ char *
TALER_TESTING_prepare_bank (const char *config_filename); TALER_TESTING_prepare_bank (const char *config_filename);
/* ******************* Generic interpreter logic ************ */
/* ************** Specific interpreter commands ************ */ /* ************** Specific interpreter commands ************ */
/** /**
* Test /history API from the bank. * Make a "history" CMD.
*
* @param label command label.
* @param bank_url base URL of the bank offering the "history"
* operation.
* @param account_no bank account number to ask the history for.
* @param direction which direction this operation is interested
* in.
* @param start_row_reference reference to a command that can
* offer a row identifier, to be used as the starting row
* to accept in the result.
* @param num_result how many rows we want in the result.
*
* @return the command.
*/ */
struct TALER_TESTING_Command struct TALER_TESTING_Command
TALER_TESTING_cmd_bank_history TALER_TESTING_cmd_bank_history
@ -95,15 +108,19 @@ TALER_TESTING_cmd_bank_history
unsigned int num_results); unsigned int num_results);
/** /**
* FIXME. * Create a "reject" CMD.
*
* @param label command label.
* @param bank_url base URL of the bank implementing the
* "reject" operation.
* @param deposit_reference reference to a command that will
* provide a "row id" and credit (bank) account to craft
* the "reject" request.
*
* @return the command.
*/ */
struct TALER_TESTING_Command struct TALER_TESTING_Command
TALER_TESTING_cmd_bank_reject (const char *label, TALER_TESTING_cmd_bank_reject (const char *label,
const char *bank_url, const char *bank_url,
const char *deposit_reference); const char *deposit_reference);
/* *** Generic trait logic for implementing traits ********* */
/* ****** Specific traits supported by this component ******* */
#endif #endif