Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
File content assertions

Macros

#define cr_assert_file_contents_eq_str(File, ExpectedContents, FormatString, ...)   internal
 
#define cr_expect_file_contents_eq_str(File, ExpectedContents, FormatString, ...)   internal
 
#define cr_assert_file_contents_neq_str(File, UnexpectedContents, FormatString, ...)   internal
 
#define cr_expect_file_contents_neq_str(File, UnexpectedContents, FormatString, ...)   internal
 
#define cr_assert_file_contents_eq(File, RefFile, FormatString, ...)   internal
 
#define cr_expect_file_contents_eq(File, RefFile, FormatString, ...)   internal
 
#define cr_assert_file_contents_neq(File, RefFile, FormatString, ...)   internal
 
#define cr_expect_file_contents_neq(File, RefFile, FormatString, ...)   internal
 

Detailed Description

Macro Definition Documentation

◆ cr_assert_file_contents_eq

#define cr_assert_file_contents_eq ( File,
RefFile,
FormatString,
... )   internal

Passes if the contents of File are equal to the contents of RefFile

Passes if the contents of File are equal to the contents of RefFile. Otherwise the test is marked as failure and the execution of the function is aborted.

The optional string is printed on failure.

Parameters
[in]FilePointer to a FILE object that specifies an input stream
[in]RefFilePointer to a FILE object that specifies an input stream
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 198 of file redirect.h.

◆ cr_assert_file_contents_eq_str

#define cr_assert_file_contents_eq_str ( File,
ExpectedContents,
FormatString,
... )   internal

Passes if the contents of File are equal to the string ExpectedContents

Passes if the contents of File are equal to the string ExpectedContents. Otherwise the test is marked as failure and the execution of the function is aborted.

The optional string is printed on failure.

Parameters
[in]FilePointer to a FILE object that specifies an input stream
[in]ExpectedContentsC string with the ExpectedContents
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 127 of file redirect.h.

◆ cr_assert_file_contents_neq

#define cr_assert_file_contents_neq ( File,
RefFile,
FormatString,
... )   internal

Passes if the contents of File are not equal to the contents of RefFile

Passes if the contents of File are not equal to the contents of RefFile. Otherwise the test is marked as failure and the execution of the function is aborted.

The optional string is printed on failure.

Parameters
[in]FilePointer to a FILE object that specifies an input stream
[in]RefFilePointer to a FILE object that specifies an input stream
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 233 of file redirect.h.

◆ cr_assert_file_contents_neq_str

#define cr_assert_file_contents_neq_str ( File,
UnexpectedContents,
FormatString,
... )   internal

Passes if the contents of File are not equal to the string UnexpectedContents

Passes if the contents of File are not equal to the string UnexpectedContents. Otherwise the test is marked as failure and the execution of the function is aborted.

The optional string is printed on failure.

Parameters
[in]FilePointer to a FILE object that specifies an input stream
[in]UnexpectedContentsC string with the UnexpectedContents
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 163 of file redirect.h.

◆ cr_expect_file_contents_eq

#define cr_expect_file_contents_eq ( File,
RefFile,
FormatString,
... )   internal

Passes if the contents of File are equal to the contents of RefFile

Passes if the contents of File are equal to the contents of RefFile. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Parameters
[in]FilePointer to a FILE object that specifies an input stream
[in]RefFilePointer to a FILE object that specifies an input stream
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 214 of file redirect.h.

◆ cr_expect_file_contents_eq_str

#define cr_expect_file_contents_eq_str ( File,
ExpectedContents,
FormatString,
... )   internal

Passes if the contents of File are equal to the string ExpectedContents

Passes if the contents of File are equal to the string ExpectedContents. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Parameters
[in]FilePointer to a FILE object that specifies an input stream
[in]ExpectedContentsC string with the ExpectedContents
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 144 of file redirect.h.

◆ cr_expect_file_contents_neq

#define cr_expect_file_contents_neq ( File,
RefFile,
FormatString,
... )   internal

Passes if the contents of File are not equal to the contents of RefFile

Passes if the contents of File are not equal to the contents of RefFile. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Parameters
[in]FilePointer to a FILE object that specifies an input stream
[in]RefFilePointer to a FILE object that specifies an input stream
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 251 of file redirect.h.

◆ cr_expect_file_contents_neq_str

#define cr_expect_file_contents_neq_str ( File,
UnexpectedContents,
FormatString,
... )   internal

Passes if the contents of File are not equal to the string UnexpectedContents

Passes if the contents of File are not equal to the string UnexpectedContents. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Parameters
[in]FilePointer to a FILE object that specifies an input stream
[in]UnexpectedContentsC string with the UnexpectedContents
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 181 of file redirect.h.