-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show call list when all calls do not occur. Closes #20.
- Loading branch information
1 parent
ad3cf46
commit b24fc15
Showing
4 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package = 'mach' | ||
version = '4.4-0' | ||
source = { | ||
url = 'https://github.com/ryanplusplus/mach.lua/archive/v4.4-0.tar.gz', | ||
dir = 'mach.lua-4.4-0/src' | ||
} | ||
description = { | ||
summary = 'Simple mocking framework for Lua inspired by CppUMock and designed for readability.', | ||
homepage = 'https://github.com/ryanplusplus/mach.lua/', | ||
license = 'MIT <http://opensource.org/licenses/MIT>' | ||
} | ||
dependencies = { | ||
'lua >= 5.1' | ||
} | ||
build = { | ||
type = 'builtin', | ||
modules = { | ||
['mach'] = 'mach.lua', | ||
['mach.Expectation'] = 'mach/Expectation.lua', | ||
['mach.ExpectedCall'] = 'mach/ExpectedCall.lua', | ||
['mach.CompletedCall'] = 'mach/CompletedCall.lua', | ||
['mach.unexpected_call_error'] = 'mach/unexpected_call_error.lua', | ||
['mach.unexpected_args_error'] = 'mach/unexpected_args_error.lua', | ||
['mach.out_of_order_call_error'] = 'mach/out_of_order_call_error.lua', | ||
['mach.format_call_status'] = 'mach/format_call_status.lua', | ||
['mach.format_arguments'] = 'mach/format_arguments.lua', | ||
['mach.deep_compare_matcher'] = 'mach/deep_compare_matcher.lua', | ||
['mach.match'] = 'mach/match.lua', | ||
['mach.any'] = 'mach/any.lua', | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
local format_call_status = require 'mach.format_call_status' | ||
|
||
return function(completed_calls, incomplete_calls, level) | ||
local message = | ||
'Not all calls occurred' .. | ||
format_call_status(completed_calls, incomplete_calls) | ||
|
||
error(message, level + 1) | ||
end |