mapidump function tests
More...
mapidump function tests
- Note
- These tests do not show how to use libmapi properly, and should not be used as a programming reference.
bool mapitest_mapidump_appointment |
( |
struct mapitest * |
mt) | |
|
Test message dump using mapidump_appointment
This function:
- Tests the mapidump_appointment() function
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_contact |
( |
struct mapitest * |
mt) | |
|
Test dump using mapidump_contact
This function:
- Tests the mapidump_contact() function
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_foldercopied |
( |
struct mapitest * |
mt) | |
|
Test dump of a folder copy notification
This function:
- Creates a FolderMoveCopyNotification structure
- Dumps that structure out using mapidump_foldercopy()
- Tests mapidump_foldercopy() with a null argument
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
Referenced by module_mapidump_init().
bool mapitest_mapidump_foldercreated |
( |
struct mapitest * |
mt) | |
|
Test dump of a Folder creation notification
This function:
- Creates a FolderCreatedNotification structure with a null tag set
- Dumps that structure out using mapidump_foldercreated()
- Adds a set of tags to the FolderCreatedNotification
- Dumps the modified FolderCreatedNotification structure using mapidump_foldercreated()
- Tests mapidump_foldercreated() with a null argument
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_folderdeleted |
( |
struct mapitest * |
mt) | |
|
Test dump of a Folder deletion notification
This function:
- Creates a FolderDeletedNotification structure
- Dumps that structure out using mapidump_folderdeleted()
- Tests mapidump_folderdeleted() with a null argument
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
Referenced by module_mapidump_init().
bool mapitest_mapidump_foldermoved |
( |
struct mapitest * |
mt) | |
|
Test dump of a folder move notification
This function:
- Creates a FolderMoveCopyNotification structure
- Dumps that structure out using mapidump_foldermoved()
- Tests mapidump_foldermoved() with a null argument
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
Referenced by module_mapidump_init().
bool mapitest_mapidump_freebusy |
( |
struct mapitest * |
mt) | |
|
Test dump of a free/busy event
This function:
- builds a freebusy binary event
- tests dumping it using mapidump_freebusy_event()
- modifies the event, and dumps it again
- modifies the event, and dumps it again
- tests dumping a date using mapidump_freebusy_date()
- tests each months for mapidump_freebusy_month()
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
References mapitest_print(), and mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_message |
( |
struct mapitest * |
mt) | |
|
Test dump of an email message using mapidump_message
This function:
- Builds an indicative email using mapi_SPropValues (sets no codepage)
- Calls the mapidump_appointment() function
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_messagecopied |
( |
struct mapitest * |
mt) | |
|
Test dump of a Message copied notification
This function:
- Creates a MessageCopiedNotification structure
- Dumps that structure out using mapidump_messagecopied()
- Tests mapidump_messagecopied() with a null argument
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
Referenced by module_mapidump_init().
bool mapitest_mapidump_messagecreated |
( |
struct mapitest * |
mt) | |
|
Test dump of a Message creation notification
This function:
- Creates a MessageCreatedNotification structure
- Dumps that structure out using mapidump_messagecreated()
- Adds tags to the MessageCreatedNotification structure
- Dumps the structure again.
- Tests mapidump_messagecreated() with a null argument
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_messagedeleted |
( |
struct mapitest * |
mt) | |
|
Test dump of a Message deletion notification
This function:
- Creates a MessageDeletedNotification structure
- Dumps that structure out using mapidump_messagedeleted()
- Tests mapidump_messagedeleted() with a null argument
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
Referenced by module_mapidump_init().
bool mapitest_mapidump_messagemodified |
( |
struct mapitest * |
mt) | |
|
Test dump of a Message modification notification
This function:
- Creates a MessageModifiedNotification structure
- Dumps that structure out using mapidump_messagemodified()
- Adds tags to the MessageModifiedNotification structure
- Dumps the structure again.
- Tests mapidump_messagemodified() with a null argument
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_messagemoved |
( |
struct mapitest * |
mt) | |
|
Test dump of a Message moved notification
This function:
- Creates a MessageMovedNotification structure
- Dumps that structure out using mapidump_messagemoved()
- Tests mapidump_messagemoved() with a null argument
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
Referenced by module_mapidump_init().
bool mapitest_mapidump_newmail |
( |
struct mapitest * |
mt) | |
|
Test dump of an new mail notification
This function:
- Tests the mapidump_msgflags function with no bits set
- Tests the mapidump_msgflags function with one bit set
- Tests the mapidump_msgflags function with all bits set
- Builds an indicative new mail notification
- Calls the mapidump_newmail function to test dumping of that new mail notification
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
Referenced by module_mapidump_init().
bool mapitest_mapidump_note |
( |
struct mapitest * |
mt) | |
|
Test dump using mapidump_note
This function:
- Tests the mapidump_note() function on a plain text message
- Tests the mapidump_note() function on a HTML message
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_pabentry |
( |
struct mapitest * |
mt) | |
|
Test dump using mapidump_pabentry
This function:
- Tests the mapidump_PAB_entry() function
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_recipients |
( |
struct mapitest * |
mt) | |
|
Test dump of a set of recipients
This function:
- builds a recipient list
- dumps out the recipient list using mapidump_Recipients()
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_sproptagarray |
( |
struct mapitest * |
mt) | |
|
Test dump using mapidump_SPropTagArray
This function:
- Tests the mapidump_SPropTagArray() function
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_spropvalue |
( |
struct mapitest * |
mt) | |
|
Test dump using mapidump_SPropValue
This function:
- Tests the mapidump_SPropValue() function
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_srowset |
( |
struct mapitest * |
mt) | |
|
Test dump using mapidump_SRowSet
This function:
- Tests the mapidump_SRowSet() function
- Indirectly tests the mapidump_SRow() function
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_task |
( |
struct mapitest * |
mt) | |
|
Test dump using mapidump_task
This function:
- Tests the mapidump_task() function
- modifies the task to be completed
- Tests the associated get_importance() function
- Tests the associated get_task_status() function
- Parameters
-
mt | pointer to the top-level mapitest structure |
- Returns
- true on success, otherwise false
- Note
- This currently doesn't check the results are sane, so manual inspection is required
References mapitest_print(), and mapitest::mem_ctx.
Referenced by module_mapidump_init().