    # File lib/chef/knife/cookbook_test.rb, line 67
          def test_cookbook(cookbook)
            ui.info("Running syntax check on #{cookbook}")
            Array(config[:cookbook_path]).reverse.each do |path|
              syntax_checker = Chef::Cookbook::SyntaxCheck.for_cookbook(cookbook, path)
              test_ruby(syntax_checker)
              test_templates(syntax_checker)
            end
          end