Skip to content

Commit

Permalink
Added message when creating mock and skeleton.
Browse files Browse the repository at this point in the history
  • Loading branch information
informatimago committed Dec 5, 2023
1 parent 453c915 commit f2b213d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cmock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ def setup_skeletons(files)
def generate_mock(src, folder)
name = File.basename(src, '.*')
ext = File.extname(src)
puts "Creating mock for #{name}, from #{src}" unless @silent
@cm_generator.create_mock(name, @cm_parser.parse(name, File.read(src), src), ext, folder, src)
end

def generate_skeleton(src)
name = File.basename(src, '.*')
puts "Creating skeleton for #{name}, from #{src}" unless @silent
@cm_generator.create_skeleton(name, @cm_parser.parse(name, File.read(src), src), src)
end
end
Expand Down

0 comments on commit f2b213d

Please sign in to comment.