mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-09-24 19:17:26 +00:00
🪲 :fail_on_unexpected_calls options now insists on required :ignore plugin (#376)
This commit is contained in:
@@ -15,12 +15,18 @@ a test-centered build manager for unit testing C code.
|
|||||||
Getting Started
|
Getting Started
|
||||||
===============
|
===============
|
||||||
|
|
||||||
If you're using Ceedling, there is no need to install CMock. It will handle it for you.
|
Your first step is to get yourself a copy of CMock. There are a number of ways to do this:
|
||||||
For everyone else, the simplest way is to grab it off github. You can also download it
|
|
||||||
as a zip if you prefer. The Github method looks something like this:
|
1. If you're using Ceedling, there is no need to install CMock. It will handle it for you.
|
||||||
|
|
||||||
|
2. The simplest way is to grab it off github. The Github method looks something like this:
|
||||||
|
|
||||||
> git clone --recursive https://github.com/throwtheswitch/cmock.git
|
> git clone --recursive https://github.com/throwtheswitch/cmock.git
|
||||||
|
|
||||||
|
3. You can also grab the `zip` file from github. If you do this, you'll also need to grab yourself a
|
||||||
|
copy of Unity and CException, because github unfortunately doesn't bake dependencies into the zip
|
||||||
|
files.
|
||||||
|
|
||||||
Contributing to this Project
|
Contributing to this Project
|
||||||
============================
|
============================
|
||||||
|
|
||||||
@@ -41,7 +47,7 @@ API Documentation
|
|||||||
|
|
||||||
* Not sure what you're doing?
|
* Not sure what you're doing?
|
||||||
* [View docs/CMock_Summary.md](docs/CMock_Summary.md)
|
* [View docs/CMock_Summary.md](docs/CMock_Summary.md)
|
||||||
* Interested in our MIT-style license?
|
* Interested in our MIT license?
|
||||||
* [View docs/license.txt](LICENSE.txt)
|
* [View docs/license.txt](LICENSE.txt)
|
||||||
* Are there examples?
|
* Are there examples?
|
||||||
* They are all in [/examples](examples/)
|
* They are all in [/examples](examples/)
|
||||||
|
|||||||
@@ -88,6 +88,9 @@ class CMockConfig
|
|||||||
|
|
||||||
options[:plugins].compact!
|
options[:plugins].compact!
|
||||||
options[:plugins].map!(&:to_sym)
|
options[:plugins].map!(&:to_sym)
|
||||||
|
|
||||||
|
raise 'The :ignore plugin is required to disable :fail_on_unexpected_calls' if (!options[:plugins].include? :ignore) && (!options[:fail_on_unexpected_calls])
|
||||||
|
|
||||||
@options = options
|
@options = options
|
||||||
|
|
||||||
treat_as_map = standard_treat_as_map # .clone
|
treat_as_map = standard_treat_as_map # .clone
|
||||||
|
|||||||
Reference in New Issue
Block a user