mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-09-18 08:09:58 +00:00
slightly better system testing
This commit is contained in:
@@ -8,6 +8,8 @@
|
|||||||
- :cexception
|
- :cexception
|
||||||
- :ignore
|
- :ignore
|
||||||
- :callback
|
- :callback
|
||||||
|
- :return_thru_ptr
|
||||||
|
- :ignore_arg
|
||||||
- :expect_any_args
|
- :expect_any_args
|
||||||
|
|
||||||
:systest:
|
:systest:
|
||||||
@@ -327,6 +329,30 @@
|
|||||||
function_e();
|
function_e();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- :pass: TRUE
|
||||||
|
:should: 'be ok if we ExpectAnyArgs and Expect intermixed because we are counting calls'
|
||||||
|
:code: |
|
||||||
|
test()
|
||||||
|
{
|
||||||
|
foos_Expect("Hello");
|
||||||
|
foos_ExpectAnyArgs();
|
||||||
|
foos_ExpectAnyArgs();
|
||||||
|
|
||||||
|
function_e();
|
||||||
|
}
|
||||||
|
|
||||||
|
- :pass: FALSE
|
||||||
|
:should: 'be able to detect Expect problem if we ExpectAnyArgs and Expect intermixed'
|
||||||
|
:code: |
|
||||||
|
test()
|
||||||
|
{
|
||||||
|
foos_Expect("Hello");
|
||||||
|
foos_ExpectAnyArgs();
|
||||||
|
foos_Expect("Wrong");
|
||||||
|
|
||||||
|
function_e();
|
||||||
|
}
|
||||||
|
|
||||||
- :pass: FALSE
|
- :pass: FALSE
|
||||||
:should: 'fail if we do not ExpectAnyArgs a call once because we are counting calls'
|
:should: 'fail if we do not ExpectAnyArgs a call once because we are counting calls'
|
||||||
:code: |
|
:code: |
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
- :callback
|
- :callback
|
||||||
- :return_thru_ptr
|
- :return_thru_ptr
|
||||||
- :ignore_arg
|
- :ignore_arg
|
||||||
|
- :expect_any_args
|
||||||
:callback_after_arg_check: true
|
:callback_after_arg_check: true
|
||||||
:callback_include_count: false
|
:callback_include_count: false
|
||||||
:treat_externs: :include
|
:treat_externs: :include
|
||||||
|
|||||||
Reference in New Issue
Block a user