class MOCK_FUNCTION_EXPECTATION [T_ -> TUPLE, R_]
Summary
Class invariant
Overview
Creation features
Features
Action when an assert fails
Mock features
assert methods used by tests
timer features
item (a_arguments: MOCK_ARGUMENTS): R_
effective function
do_call (args: MOCK_ARGUMENTS)
effective procedure
last_item: R_
writable attribute
result_ready: BOOLEAN
writable attribute
then_return (a_item: R_): MOCK_FUNCTION_EXPECTATION [T_ -> TUPLE, R_]
effective function
infix "=>" (a_item: R_): MOCK_FUNCTION_EXPECTATION [T_ -> TUPLE, R_]
effective function
with_side_effect (a_side_effect: FUNCTION[TUPLE[TUPLE 1[MOCK_ARGUMENTS], R_]]): MOCK_FUNCTION_EXPECTATION [T_ -> TUPLE, R_]
effective function
infix "~>" (a_side_effect: FUNCTION[TUPLE[TUPLE 1[MOCK_ARGUMENTS], R_]]): MOCK_FUNCTION_EXPECTATION [T_ -> TUPLE, R_]
effective function
given_result: R_
writable attribute
side_effect: FUNCTION[TUPLE[TUPLE 1[MOCK_ARGUMENTS], R_]]
writable attribute
ready: BOOLEAN
writable attribute
target: MOCK_OBJECT
writable attribute
feature_name: FIXED_STRING
writable attribute
arg_matchers: MOCK_MATCHERS
writable attribute
counter_ready: BOOLEAN
effective function
out_in_tagged_out_memory
effective procedure
Append terse printable representation of current object in tagged_out_memory.
times (how_many: INTEGER_32): MOCK_FUNCTION_EXPECTATION [T_ -> TUPLE, R_]
effective function
infix "*" (how_many: INTEGER_32): MOCK_FUNCTION_EXPECTATION [T_ -> TUPLE, R_]
effective function
whenever: MOCK_FUNCTION_EXPECTATION [T_ -> TUPLE, R_]
effective function
counter_any_time: MOCK_TIMES_ANY
once function
can_call (a_target: MOCK_OBJECT, a_feature_name: FIXED_STRING, a_arguments: MOCK_ARGUMENTS): BOOLEAN
effective function
match_arguments (a_arguments: MOCK_ARGUMENTS): BOOLEAN
effective function
call (a_arguments: MOCK_ARGUMENTS)
effective procedure
done
effective procedure
all_called
effective procedure
all_done_message_in (message: STRING)
effective procedure
all_done: BOOLEAN
effective function
counter: MOCK_TIMES
writable attribute
make (a_target: MOCK_OBJECT, a_feature_name: FIXED_STRING, a_arg_matchers: MOCK_MATCHERS)
effective procedure
start_replay (missing_expectations: COLLECTION[MOCK_EXPECTATION])
effective procedure
stop_replay
effective procedure
effective procedure
scenario: MOCK_SCENARIO
writable attribute
assert (test: BOOLEAN)
effective procedure
Check that test is actually True.
label_assert (label: ABSTRACT_STRING, test: BOOLEAN)
effective procedure
Check that test is actually True.
message_assert (message_generator: FUNCTION[TUPLE, ABSTRACT_STRING], test: BOOLEAN)
effective procedure
Check that test is actually True.
start_timer: MICROSECOND_TIME
effective function
stop_timer (start: MICROSECOND_TIME)
effective procedure
timed (action: PROCEDURE[TUPLE])
effective procedure
assert_counter: COUNTER
once function
Unique once COUNTER used to count assert calls.
assertion_flag: STRING
effective function
assertion_level: INTEGER_32
writable attribute
assertion_level_none: INTEGER_32
is 0
constant attribute
assertion_level_require: INTEGER_32
is 1
constant attribute
assertion_level_ensure: INTEGER_32
is 2
constant attribute
assertion_level_class_invariant: INTEGER_32
is 3
constant attribute
assertion_level_loop_invariant: INTEGER_32
is 4
constant attribute
assertion_level_check: INTEGER_32
is 5
constant attribute
set_require: BOOLEAN
effective function
set_loop_invariant: BOOLEAN
effective function
set_check: BOOLEAN
effective function
set_ensure: BOOLEAN
effective function
set_class_invariant: BOOLEAN
effective function
probe_assertion_level
effective procedure
default_test_failed (id: INTEGER_32, lbl: ABSTRACT_STRING, gen: ABSTRACT_STRING, ass_flag: ABSTRACT_STRING)
effective procedure
counter_to_message: FUNCTION[TUPLE, ABSTRACT_STRING]
once function
count_to_message: ABSTRACT_STRING
effective function
label_to_message (label: ABSTRACT_STRING): ABSTRACT_STRING
effective function