ceedling 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ceedling.gemspec +1 -1
- data/lib/ceedling/version.rb +2 -2
- data/lib/ceedling/version.rb.erb +1 -2
- data/test_graveyard/unit/busted/generator_test_runner_test.rb +2 -5
- data/vendor/cmock/Gemfile +1 -3
- data/vendor/cmock/Rakefile +10 -17
- data/vendor/cmock/docs/license.txt +18 -30
- data/vendor/cmock/examples/gcc.yml +2 -2
- data/vendor/cmock/examples/iar_v4.yml +3 -3
- data/vendor/cmock/examples/iar_v5.yml +3 -3
- data/vendor/cmock/examples/rakefile_helper.rb +35 -35
- data/vendor/cmock/lib/cmock_generator.rb +17 -5
- data/vendor/cmock/lib/cmock_generator_plugin_array.rb +9 -3
- data/vendor/cmock/lib/cmock_generator_plugin_ignore_arg.rb +1 -1
- data/vendor/cmock/lib/cmock_generator_plugin_return_thru_ptr.rb +1 -1
- data/vendor/cmock/lib/cmock_header_parser.rb +7 -3
- data/vendor/cmock/release/version.info +1 -1
- data/vendor/cmock/test/c/TestCMockCDynamic_Runner.c +1 -2
- data/vendor/cmock/test/c/TestCMockC_Runner.c +1 -1
- data/vendor/cmock/test/system/systest_generator.rb +6 -2
- data/vendor/cmock/test/system/test_compilation/const.h +3 -1
- data/vendor/cmock/test/test_helper.rb +38 -40
- data/vendor/cmock/test/unit/cmock_config_test.rb +26 -29
- data/vendor/cmock/test/unit/cmock_file_writer_test.rb +8 -11
- data/vendor/cmock/test/unit/cmock_generator_main_test.rb +82 -80
- data/vendor/cmock/test/unit/cmock_generator_plugin_array_test.rb +62 -43
- data/vendor/cmock/test/unit/cmock_generator_plugin_callback_test.rb +44 -45
- data/vendor/cmock/test/unit/cmock_generator_plugin_cexception_test.rb +30 -31
- data/vendor/cmock/test/unit/cmock_generator_plugin_expect_any_args_test.rb +15 -16
- data/vendor/cmock/test/unit/cmock_generator_plugin_expect_test.rb +76 -77
- data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_arg_test.rb +19 -19
- data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_test.rb +17 -18
- data/vendor/cmock/test/unit/cmock_generator_plugin_return_thru_ptr_test.rb +17 -17
- data/vendor/cmock/test/unit/cmock_generator_utils_test.rb +74 -65
- data/vendor/cmock/test/unit/cmock_header_parser_test.rb +103 -76
- data/vendor/cmock/test/unit/cmock_plugin_manager_test.rb +46 -36
- data/vendor/cmock/test/unit/cmock_unityhelper_parser_test.rb +85 -85
- data/vendor/unity/auto/generate_test_runner.rb +4 -3
- data/vendor/unity/auto/type_sanitizer.rb +8 -0
- data/vendor/unity/auto/unity_test_summary.py +135 -0
- data/vendor/unity/examples/example_1/makefile +16 -0
- data/vendor/unity/examples/example_1/src/ProductionCode2.c +2 -0
- data/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +0 -13
- data/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +0 -13
- data/vendor/unity/examples/example_2/makefile +20 -1
- data/vendor/unity/examples/example_2/src/ProductionCode2.c +2 -0
- data/vendor/unity/examples/example_2/test/test_runners/all_tests.c +2 -2
- data/vendor/unity/examples/example_3/makefile +16 -0
- data/vendor/unity/examples/example_3/src/ProductionCode2.c +2 -0
- data/vendor/unity/examples/example_3/test/no_ruby/TestProductionCode2_Runner.c +0 -13
- data/vendor/unity/examples/example_3/test/no_ruby/TestProductionCode_Runner.c +0 -13
- data/vendor/unity/extras/fixture/rakefile.rb +14 -3
- data/vendor/unity/extras/fixture/src/unity_fixture.c +21 -11
- data/vendor/unity/extras/fixture/src/unity_fixture.h +8 -4
- data/vendor/unity/extras/fixture/src/unity_fixture_internals.h +1 -1
- data/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +5 -0
- data/vendor/unity/extras/fixture/test/main/AllTests.c +2 -2
- data/vendor/unity/extras/fixture/test/unity_fixture_Test.c +8 -8
- data/vendor/unity/extras/fixture/test/unity_output_Spy.c +2 -2
- data/vendor/unity/extras/fixture/test/unity_output_Spy.h +2 -2
- data/vendor/unity/release/version.info +1 -1
- data/vendor/unity/src/unity.c +26 -19
- data/vendor/unity/src/unity_internals.h +9 -12
- data/vendor/unity/test/targets/gcc_auto_stdint.yml +13 -0
- metadata +4 -5
- data/vendor/cmock/test/spec/cmock_file_writer_spec.rb +0 -45
- data/vendor/cmock/test/spec/cmock_generator_plugin_array_spec.rb +0 -52
- data/vendor/cmock/test/spec/spec_helper.rb +0 -12
@@ -1,52 +0,0 @@
|
|
1
|
-
here = File.expand_path(File.dirname(__FILE__))
|
2
|
-
require "#{here}/spec_helper" #add this to execute tests from the spec directory
|
3
|
-
require 'cmock_generator_plugin_array'
|
4
|
-
|
5
|
-
describe :CMockGeneratorPluginArray do
|
6
|
-
before do
|
7
|
-
@cmConfig = Object.new
|
8
|
-
@cmUtils = Object.new
|
9
|
-
mock(@cmConfig).when_ptr {:compare_data}
|
10
|
-
mock(@cmConfig).enforce_strict_ordering {false}
|
11
|
-
mock(@cmUtils).helpers { {} }
|
12
|
-
#create instance of class under test
|
13
|
-
@subject = CMockGeneratorPluginArray.new(@cmConfig, @cmUtils)
|
14
|
-
end
|
15
|
-
|
16
|
-
it "should not respond to include_files" do
|
17
|
-
# @subject.should_not respond_to(:include_files)
|
18
|
-
end
|
19
|
-
|
20
|
-
# it "should not add to typedef structure for functions of " +
|
21
|
-
# "style 'int* func(void)'" do
|
22
|
-
# function = {:name => "Oak", :args => [], :return => :int_ptr}
|
23
|
-
# returned = @subject.instance_typedefs(function)
|
24
|
-
# returned.should == ""
|
25
|
-
# end
|
26
|
-
|
27
|
-
# it "should add to typedef structure mock needs of functions of style "+
|
28
|
-
# "'void func(int chicken, int* pork)'" do
|
29
|
-
# arg1 = { :name => "chicken", :type => "int", :ptr? => false}
|
30
|
-
# arg2 = { :name => "pork", :type => "int*", :ptr? => true}
|
31
|
-
# function = {:name => "Cedar",
|
32
|
-
# :args => [arg1, arg2],
|
33
|
-
# :return => :void}
|
34
|
-
# expected = " int Expected_pork_Depth;\n"
|
35
|
-
# returned = @subject.instance_typedefs(function)
|
36
|
-
# returned.should == expected
|
37
|
-
# end
|
38
|
-
|
39
|
-
# it "should not add an additional mock interface for functions not containing pointers" do
|
40
|
-
# function = {:name => "Maple", :args_string => "int blah", :return => :string,
|
41
|
-
# :contains_ptr? => false}
|
42
|
-
# returned = @subject.mock_function_declarations(function)
|
43
|
-
# returned.should_be nil
|
44
|
-
# end
|
45
|
-
|
46
|
-
# describe 'create_file' do
|
47
|
-
# it "complain if a block was not specified when calling create" do
|
48
|
-
# expect {@subject.create_file("text.txt")}.should raise_error
|
49
|
-
# # should.be_false
|
50
|
-
# end
|
51
|
-
# end
|
52
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
|
3
|
-
proj_root = File.expand_path(File.dirname(__FILE__) + '/../..')
|
4
|
-
# require proj_root + '/config/environment'
|
5
|
-
$LOAD_PATH << proj_root + '/lib'
|
6
|
-
|
7
|
-
require 'rspec'
|
8
|
-
require 'rr'
|
9
|
-
|
10
|
-
RSpec.configure do |config|
|
11
|
-
config.mock_with :rr
|
12
|
-
end
|