* added callback plugin

* cleaned up plugin prioritization
* updated plain docs

git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@148 bf332499-1b4d-0410-844d-d2d48d5cc64c
This commit is contained in:
mvandervoord
2009-12-04 18:52:59 +00:00
parent eee379f611
commit 06ef8bb221
18 changed files with 465 additions and 163 deletions
+3 -14
View File
@@ -20,6 +20,7 @@ class CMockGeneratorPluginArrayTest < Test::Unit::TestCase
assert_equal(@config, @cmock_generator_plugin_array.config)
assert_equal(@utils, @cmock_generator_plugin_array.utils)
assert_equal(nil, @cmock_generator_plugin_array.unity_helper)
assert_equal(8, @cmock_generator_plugin_array.priority)
end
should "not include any additional include files" do
@@ -78,21 +79,9 @@ class CMockGeneratorPluginArrayTest < Test::Unit::TestCase
returned = @cmock_generator_plugin_array.mock_function_declarations(function)
assert_equal(expected, returned)
end
should "not require anything for implementation prefix" do
assert(!@cmock_generator_plugin_array.respond_to?(:mock_implementation_prefix))
end
should "not have a mock function implementation for functions of style 'int* func(void)'" do
function = {:name => "Apple", :args => [], :return_type => "int*", :contains_ptr? => false}
returned = @cmock_generator_plugin_array.mock_implementation(function)
assert_nil(returned)
end
should "not have a mock function implementation for functions containing pointers either (handled in expect)" do
function = {:name => "Apple", :args => [{ :type => 'int*', :name => 'sausage', :ptr? => true}], :return_type => "int*", :contains_ptr? => true}
returned = @cmock_generator_plugin_array.mock_implementation(function)
assert_nil(returned)
should "not have a mock function implementation" do
assert(!@cmock_generator_plugin_array.respond_to?(:mock_implementation))
end
should "not have a mock interfaces for functions of style 'int* func(void)'" do