Back to home page

Enduro/X

 
 

    


0001 #include <cgreen/constraint_syntax_helpers.h>
0002 #include <cgreen/constraint.h>
0003 #include <cgreen/message_formatting.h>
0004 #ifndef __cplusplus
0005 #include <stdbool.h>
0006 #endif
0007 #include <stddef.h>
0008 
0009 #ifdef __cplusplus
0010 namespace cgreen {
0011 #endif
0012 
0013 Constraint static_is_non_null_constraint = {
0014     /* .type */ VALUE_COMPARER,
0015     /* .name */ "be non null",
0016     /* .destroy */ destroy_static_constraint,
0017     /* .compare */ compare_do_not_want_value,
0018     /* .test */ test_want,
0019     /* .format_failure_message_for */ failure_message_for,
0020     /* .expected_value_message */ "",
0021     /* .stored_value */ (intptr_t)NULL,
0022     /* .stored_value_name */ "null",
0023     /* .parameter_name */ NULL,
0024     /* .size_of_stored_value */ 0
0025 };
0026 
0027 Constraint static_is_null_constraint = {
0028     /* .type */ VALUE_COMPARER,
0029     /* .name */ "be null",
0030     /* .destroy */ destroy_static_constraint,
0031     /* .compare */ compare_want_value,
0032     /* .test */ test_want,
0033     /* .format_failure_message_for */ failure_message_for,
0034     /* .expected_value_message */ "",
0035     /* .stored_value */ (intptr_t)NULL,
0036     /* .stored_value_name */ "null",
0037     /* .parameter_name */ NULL,
0038     /* .size_of_stored_value */ 0
0039 };
0040 
0041 Constraint static_is_false_constraint = { 
0042     /* .type */ VALUE_COMPARER,
0043     /* .name */ "be false",
0044     /* .destroy */ destroy_static_constraint,
0045     /* .compare */ compare_want_value,
0046     /* .test */ test_want,
0047     /* .format_failure_message_for */ failure_message_for,
0048     /* .expected_value_message */ "",
0049     /* .stored_value */ false,
0050     /* .stored_value_name */ "false",
0051     /* .parameter_name */ NULL,
0052     /* .size_of_stored_value */ 0
0053 };
0054 
0055 Constraint static_is_true_constraint = { 
0056     /* .type */ VALUE_COMPARER,
0057     /* .name */ "be true",
0058     /* .destroy */ destroy_static_constraint,
0059     /* .compare */ compare_want_value,
0060     /* .test */ test_want,
0061     /* .format_failure_message_for */ failure_message_for,
0062     /* .expected_message */ "",
0063     /* .stored_value */ true,
0064     /* .stored_value_name */ "true",
0065     /* .parameter_name */ NULL,
0066     /* .size_of_stored_value */ 0
0067 };
0068 
0069 Constraint *is_non_null = &static_is_non_null_constraint;
0070 Constraint *is_null = &static_is_null_constraint;
0071 Constraint *is_false = &static_is_false_constraint;
0072 Constraint *is_true = &static_is_true_constraint;
0073 
0074 #ifdef __cplusplus
0075 } // namespace cgreen
0076 #endif
0077 
0078 /* vim: set ts=4 sw=4 et cindent: */