mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 19:00:39 -07:00
more opt
This commit is contained in:
committed by
Michael Go
parent
aa45356133
commit
f42c6b0608
@@ -48,6 +48,14 @@ class ThemeRunner
|
||||
end
|
||||
end
|
||||
|
||||
# `tokenize` will just test the tokenizen portion of liquid without any templates
|
||||
def tokenize
|
||||
@tests.each do |test_hash|
|
||||
tokenizer = Liquid::Tokenizer.new(test_hash[:liquid], true)
|
||||
while tokenizer.shift; end
|
||||
end
|
||||
end
|
||||
|
||||
# `run` is called to benchmark rendering and compiling at the same time
|
||||
def run
|
||||
each_test do |liquid, layout, assigns, page_template, template_name|
|
||||
|
||||
Reference in New Issue
Block a user