/*++ /* NAME /* mock_open_as 3 /* SUMMARY /* test scaffolding /* SYNOPSIS /* #include <mock_open_as.h> /* /* typedef struct MOCK_OPEN_AS_REQ { /* in +4 /* const char *want_path, /* uid_t want_uid, /* gid_t want_gid, /* const char *out_data, /* int out_errno) /* .in -4 /* } MOCK_OPEN_AS_REQ; /* /* void setup_mock_vstream_fopen_as(const MOCK_OPEN_AS_REQ *request) /* DESCRIPTION /* This module provides a mock vstream_fopen_as() implementation /* that returns static results for expected calls. /* /* setup_mock_vstream_fopen_as() makes a shallow copy of its input: /* .IP want_path, want_uid, want_gid /* The expected vstream_fopen_as() arguments. If the mock /* vstream_fopen_as() is called with an unexpected argument, the /* mock terminates the test with a fatal error. /* .IP out_data /* The data that can be read from the stream returned by /* vstream_fopen_as(). /* .IP out_errno /* If not NULL, vstream_fopen_as() will return NULL and set errno /* to the value of this argument. /* SEE ALSO /* open_as(3), the real thing /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* porcupine.org
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.