SYMBOL INDEX (2031 symbols across 140 files) FILE: example/server/example_servlet.rb type ProductsFilter (line 3) | module ProductsFilter function price (line 4) | def price(integer) function prettyprint (line 8) | def prettyprint(text) function count (line 12) | def count(array) function paragraph (line 16) | def paragraph(p) class Servlet (line 21) | class Servlet < LiquidServlet method index (line 22) | def index method products (line 26) | def products method products_list (line 32) | def products_list method more_products_list (line 40) | def more_products_list method description (line 47) | def description FILE: example/server/liquid_servlet.rb class LiquidServlet (line 3) | class LiquidServlet < WEBrick::HTTPServlet::AbstractServlet method do_GET (line 4) | def do_GET(req, res) method do_POST (line 8) | def do_POST(req, res) method handle (line 14) | def handle(_type, req, res) method read_template (line 27) | def read_template(filename = @action) FILE: lib/liquid.rb type Liquid (line 26) | module Liquid FILE: lib/liquid/block.rb type Liquid (line 3) | module Liquid class Block (line 4) | class Block < Tag method initialize (line 7) | def initialize(tag_name, markup, options) method parse (line 12) | def parse(tokens) method render (line 20) | def render(context) method blank? (line 24) | def blank? method nodelist (line 28) | def nodelist method unknown_tag (line 32) | def unknown_tag(tag_name, _markup, _tokenizer) method raise_unknown_tag (line 37) | def self.raise_unknown_tag(tag, block_name, block_delimiter, parse_c... method raise_tag_never_closed (line 55) | def raise_tag_never_closed(block_name) method block_name (line 59) | def block_name method block_delimiter (line 63) | def block_delimiter method new_body (line 70) | def new_body method parse_body (line 75) | def parse_body(body, tokens) FILE: lib/liquid/block_body.rb type Liquid (line 5) | module Liquid class BlockBody (line 6) | class BlockBody method initialize (line 17) | def initialize method parse (line 22) | def parse(tokenizer, parse_context, &block) method freeze (line 34) | def freeze method parse_for_liquid_tag (line 39) | def parse_for_liquid_tag(tokenizer, parse_context) method unknown_tag_in_liquid_tag (line 71) | def self.unknown_tag_in_liquid_tag(tag, parse_context) method raise_missing_tag_terminator (line 76) | def self.raise_missing_tag_terminator(token, parse_context) method raise_missing_variable_terminator (line 81) | def self.raise_missing_variable_terminator(token, parse_context) method render_node (line 86) | def self.render_node(context, output, node) method rescue_render_node (line 94) | def self.rescue_render_node(context, output, line_number, exc, blank... method parse_liquid_tag (line 108) | def parse_liquid_tag(markup, parse_context) method handle_invalid_tag_token (line 119) | def handle_invalid_tag_token(token, parse_context) method parse_for_document (line 127) | def parse_for_document(tokenizer, parse_context, &block) method whitespace_handler (line 176) | def whitespace_handler(token, parse_context) method blank? (line 190) | def blank? method remove_blank_strings (line 209) | def remove_blank_strings method render (line 214) | def render(context) method render_to_output_buffer (line 218) | def render_to_output_buffer(context, output) method render_node (line 244) | def render_node(context, output, node) method create_variable (line 248) | def create_variable(token, parse_context) method raise_missing_tag_terminator (line 264) | def raise_missing_tag_terminator(token, parse_context) method raise_missing_variable_terminator (line 269) | def raise_missing_variable_terminator(token, parse_context) FILE: lib/liquid/condition.rb type Liquid (line 3) | module Liquid class Condition (line 11) | class Condition # :nodoc: class MethodLiteral (line 33) | class MethodLiteral method initialize (line 36) | def initialize(method_name, to_s) method operators (line 47) | def self.operators method parse_expression (line 51) | def self.parse_expression(parse_context, markup, safe: false) method initialize (line 58) | def initialize(left = nil, operator = nil, right = nil) method evaluate (line 67) | def evaluate(context = deprecated_default_context) method or (line 86) | def or(condition) method and (line 91) | def and(condition) method attach (line 96) | def attach(attachment) method else? (line 100) | def else? method inspect (line 104) | def inspect method equal_variables (line 114) | def equal_variables(left, right) method call_method_literal (line 126) | def call_method_literal(literal, value) method liquid_blank? (line 149) | def liquid_blank?(value) method liquid_empty? (line 168) | def liquid_empty?(value) method interpret_condition (line 177) | def interpret_condition(left, right, op, context) method deprecated_default_context (line 199) | def deprecated_default_context class ParseTreeVisitor (line 205) | class ParseTreeVisitor < Liquid::ParseTreeVisitor method children (line 206) | def children class ElseCondition (line 217) | class ElseCondition < Condition method else? (line 218) | def else? method evaluate (line 222) | def evaluate(_context) FILE: lib/liquid/const.rb type Liquid (line 3) | module Liquid type Const (line 4) | module Const FILE: lib/liquid/context.rb type Liquid (line 3) | module Liquid class Context (line 16) | class Context method build (line 21) | def self.build(environment: Environment.default, environments: {}, o... method initialize (line 25) | def initialize(environments = {}, outer_scope = {}, registers = {}, ... method warnings (line 63) | def warnings method strainer (line 67) | def strainer method add_filters (line 75) | def add_filters(filters) method apply_global_filter (line 81) | def apply_global_filter(obj) method interrupt? (line 86) | def interrupt? method push_interrupt (line 91) | def push_interrupt(e) method pop_interrupt (line 96) | def pop_interrupt method handle_error (line 100) | def handle_error(e, line_number = nil) method invoke (line 108) | def invoke(method, *args) method push (line 113) | def push(new_scope = {}) method merge (line 119) | def merge(new_scopes) method pop (line 124) | def pop method stack (line 137) | def stack(new_scope = {}) method new_isolated_subcontext (line 146) | def new_isolated_subcontext method clear_instance_assigns (line 165) | def clear_instance_assigns method []= (line 170) | def []=(key, value) method [] (line 182) | def [](expression) method key? (line 186) | def key?(key) method evaluate (line 190) | def evaluate(object) method find_variable (line 195) | def find_variable(key, raise_on_not_found: true) method lookup_and_evaluate (line 216) | def lookup_and_evaluate(obj, key, raise_on_not_found: true) method with_disabled_tags (line 230) | def with_disabled_tags(tag_names) method tag_disabled? (line 241) | def tag_disabled?(tag_name) method try_variable_find_in_environments (line 253) | def try_variable_find_in_environments(key, raise_on_not_found:) method check_overflow (line 269) | def check_overflow method overflow? (line 273) | def overflow? method internal_error (line 277) | def internal_error method squash_instance_assigns_with_environments (line 284) | def squash_instance_assigns_with_environments FILE: lib/liquid/deprecations.rb type Liquid (line 5) | module Liquid class Deprecations (line 6) | class Deprecations method warn (line 12) | def warn(name, alternative) FILE: lib/liquid/document.rb type Liquid (line 3) | module Liquid class Document (line 4) | class Document method parse (line 5) | def self.parse(tokens, parse_context) method initialize (line 13) | def initialize(parse_context) method nodelist (line 18) | def nodelist method parse (line 22) | def parse(tokenizer, parse_context) method unknown_tag (line 31) | def unknown_tag(tag, _markup, _tokenizer) method render_to_output_buffer (line 40) | def render_to_output_buffer(context, output) method render (line 44) | def render(context) method new_body (line 50) | def new_body method parse_body (line 54) | def parse_body(tokenizer) FILE: lib/liquid/drop.rb type Liquid (line 5) | module Liquid class Drop (line 25) | class Drop method initialize (line 28) | def initialize method liquid_method_missing (line 33) | def liquid_method_missing(method) method invoke_drop (line 39) | def invoke_drop(method_or_key) method key? (line 47) | def key?(_name) method inspect (line 51) | def inspect method to_liquid (line 55) | def to_liquid method to_s (line 59) | def to_s method invokable? (line 66) | def self.invokable?(method_name) method invokable_methods (line 70) | def self.invokable_methods FILE: lib/liquid/environment.rb type Liquid (line 3) | module Liquid class Environment (line 6) | class Environment method build (line 42) | def build(tags: nil, file_system: nil, error_mode: nil, exception_re... method default (line 55) | def default method dangerously_override (line 65) | def dangerously_override(environment) method initialize (line 76) | def initialize method register_tag (line 93) | def register_tag(name, klass) method register_filter (line 101) | def register_filter(filter) method register_filters (line 110) | def register_filters(filters) method create_strainer (line 124) | def create_strainer(context, filters = Const::EMPTY_ARRAY) method filter_method_names (line 140) | def filter_method_names method tag_for_name (line 148) | def tag_for_name(name) method freeze (line 152) | def freeze FILE: lib/liquid/errors.rb type Liquid (line 3) | module Liquid class Error (line 4) | class Error < ::StandardError method to_s (line 9) | def to_s(with_prefix = true) method message_prefix (line 24) | def message_prefix FILE: lib/liquid/expression.rb type Liquid (line 3) | module Liquid class Expression (line 4) | class Expression method safe_parse (line 31) | def safe_parse(parser, ss = StringScanner.new(""), cache = nil) method parse (line 35) | def parse(markup, ss = StringScanner.new(""), cache = nil) method inner_parse (line 57) | def inner_parse(markup, ss, cache) method parse_number (line 74) | def parse_number(markup, ss) FILE: lib/liquid/extensions.rb class String (line 6) | class String # :nodoc: method to_liquid (line 7) | def to_liquid class Symbol (line 12) | class Symbol # :nodoc: method to_liquid (line 13) | def to_liquid class Array (line 18) | class Array # :nodoc: method to_liquid (line 19) | def to_liquid class Hash (line 24) | class Hash # :nodoc: method to_liquid (line 25) | def to_liquid class Numeric (line 30) | class Numeric # :nodoc: method to_liquid (line 31) | def to_liquid class Range (line 36) | class Range # :nodoc: method to_liquid (line 37) | def to_liquid class Time (line 42) | class Time # :nodoc: method to_liquid (line 43) | def to_liquid class DateTime (line 48) | class DateTime < Date # :nodoc: method to_liquid (line 49) | def to_liquid class Date (line 54) | class Date # :nodoc: method to_liquid (line 55) | def to_liquid class TrueClass (line 60) | class TrueClass method to_liquid (line 61) | def to_liquid # :nodoc: class FalseClass (line 66) | class FalseClass method to_liquid (line 67) | def to_liquid # :nodoc: class NilClass (line 72) | class NilClass method to_liquid (line 73) | def to_liquid # :nodoc: FILE: lib/liquid/file_system.rb type Liquid (line 3) | module Liquid class BlankFileSystem (line 17) | class BlankFileSystem method read_template_file (line 19) | def read_template_file(_template_path) class LocalFileSystem (line 46) | class LocalFileSystem method initialize (line 49) | def initialize(root, pattern = "_%s.liquid") method read_template_file (line 54) | def read_template_file(template_path) method full_path (line 61) | def full_path(template_path) FILE: lib/liquid/forloop_drop.rb type Liquid (line 3) | module Liquid class ForloopDrop (line 9) | class ForloopDrop < Drop method initialize (line 10) | def initialize(name, length, parentloop) method index (line 39) | def index method index0 (line 47) | def index0 method rindex (line 55) | def rindex method rindex0 (line 63) | def rindex0 method first (line 71) | def first method last (line 79) | def last method increment! (line 85) | def increment! FILE: lib/liquid/i18n.rb type Liquid (line 5) | module Liquid class I18n (line 6) | class I18n method initialize (line 13) | def initialize(path = DEFAULT_LOCALE) method translate (line 17) | def translate(name, vars = {}) method locale (line 22) | def locale method interpolate (line 28) | def interpolate(name, vars) method deep_fetch_translation (line 35) | def deep_fetch_translation(name) FILE: lib/liquid/interrupts.rb type Liquid (line 3) | module Liquid class Interrupt (line 5) | class Interrupt method initialize (line 8) | def initialize(message = nil) class BreakInterrupt (line 14) | class BreakInterrupt < Interrupt; end class ContinueInterrupt (line 17) | class ContinueInterrupt < Interrupt; end FILE: lib/liquid/lexer.rb type Liquid (line 3) | module Liquid class Lexer (line 4) | class Lexer method tokenize (line 103) | def tokenize(ss) method raise_syntax_error (line 172) | def raise_syntax_error(start_pos, ss) FILE: lib/liquid/parse_context.rb type Liquid (line 3) | module Liquid class ParseContext (line 4) | class ParseContext method initialize (line 8) | def initialize(options = Const::EMPTY_HASH) method [] (line 31) | def [](option_key) method new_block_body (line 35) | def new_block_body method new_parser (line 39) | def new_parser(input) method new_tokenizer (line 44) | def new_tokenizer(source, start_line_number: nil, for_liquid_tag: fa... method safe_parse_expression (line 53) | def safe_parse_expression(parser) method parse_expression (line 57) | def parse_expression(markup, safe: false) method partial= (line 72) | def partial=(value) method partial_options (line 79) | def partial_options FILE: lib/liquid/parse_tree_visitor.rb type Liquid (line 3) | module Liquid class ParseTreeVisitor (line 4) | class ParseTreeVisitor method for (line 5) | def self.for(node, callbacks = Hash.new(proc {})) method initialize (line 13) | def initialize(node, callbacks) method add_callback_for (line 18) | def add_callback_for(*classes, &block) method visit (line 26) | def visit(context = nil) method children (line 38) | def children FILE: lib/liquid/parser.rb type Liquid (line 3) | module Liquid class Parser (line 4) | class Parser method initialize (line 5) | def initialize(input) method jump (line 11) | def jump(point) method consume (line 15) | def consume(type = nil) method consume? (line 27) | def consume?(type) method id? (line 35) | def id?(str) method look (line 43) | def look(type, ahead = 0) method expression (line 49) | def expression method argument (line 74) | def argument method variable_lookups (line 85) | def variable_lookups FILE: lib/liquid/parser_switching.rb type Liquid (line 3) | module Liquid type ParserSwitching (line 4) | module ParserSwitching function strict_parse_with_error_mode_fallback (line 13) | def strict_parse_with_error_mode_fallback(markup) function parse_with_selected_parser (line 32) | def parse_with_selected_parser(markup) function strict2_mode? (line 48) | def strict2_mode? function rigid_warn (line 54) | def rigid_warn function strict2_parse_with_error_context (line 58) | def strict2_parse_with_error_context(markup) function strict_parse_with_error_context (line 66) | def strict_parse_with_error_context(markup) function markup_context (line 74) | def markup_context(markup) FILE: lib/liquid/partial_cache.rb type Liquid (line 3) | module Liquid class PartialCache (line 4) | class PartialCache method load (line 5) | def self.load(template_name, context:, parse_context:) FILE: lib/liquid/profiler.rb type Liquid (line 5) | module Liquid class Profiler (line 45) | class Profiler class Timing (line 48) | class Timing method initialize (line 54) | def initialize(code: nil, template_name: nil, line_number: nil) method self_time (line 61) | def self_time method initialize (line 75) | def initialize method profile (line 81) | def profile(template_name, &block) method children (line 98) | def children method each (line 107) | def each(&block) method [] (line 111) | def [](idx) method length (line 115) | def length method profile_node (line 119) | def profile_node(template_name, code: nil, line_number: nil) method monotonic_time (line 135) | def monotonic_time FILE: lib/liquid/profiler/hooks.rb type Liquid (line 3) | module Liquid type BlockBodyProfilingHook (line 4) | module BlockBodyProfilingHook function render_node (line 5) | def render_node(context, output, node) type DocumentProfilingHook (line 17) | module DocumentProfilingHook function render_to_output_buffer (line 18) | def render_to_output_buffer(context, output) type ContextProfilingHook (line 25) | module ContextProfilingHook function new_isolated_subcontext (line 28) | def new_isolated_subcontext FILE: lib/liquid/range_lookup.rb type Liquid (line 3) | module Liquid class RangeLookup (line 4) | class RangeLookup method parse (line 5) | def self.parse(start_markup, end_markup, string_scanner, cache = nil) method initialize (line 27) | def initialize(start_obj, end_obj) method evaluate (line 32) | def evaluate(context) method to_integer (line 40) | def to_integer(input) class ParseTreeVisitor (line 51) | class ParseTreeVisitor < Liquid::ParseTreeVisitor method children (line 52) | def children FILE: lib/liquid/registers.rb type Liquid (line 3) | module Liquid class Registers (line 4) | class Registers method initialize (line 7) | def initialize(registers = {}) method []= (line 12) | def []=(key, value) method [] (line 16) | def [](key) method delete (line 24) | def delete(key) method fetch (line 30) | def fetch(key, default = UNDEFINED, &block) method key? (line 44) | def key?(key) FILE: lib/liquid/resource_limits.rb type Liquid (line 3) | module Liquid class ResourceLimits (line 4) | class ResourceLimits method initialize (line 15) | def initialize(limits) method increment_render_score (line 26) | def increment_render_score(amount) method increment_assign_score (line 33) | def increment_assign_score(amount) method increment_write_score (line 41) | def increment_write_score(output) method raise_limits_reached (line 52) | def raise_limits_reached method reached? (line 57) | def reached? method reset (line 61) | def reset method with_capture (line 69) | def with_capture FILE: lib/liquid/standardfilters.rb type Liquid (line 6) | module Liquid type StandardFilters (line 7) | module StandardFilters function try_coerce_encoding (line 32) | def try_coerce_encoding(input, encoding:) function size (line 54) | def size(input) function downcase (line 65) | def downcase(input) function upcase (line 76) | def upcase(input) function capitalize (line 87) | def capitalize(input) function escape (line 98) | def escape(input) function escape_once (line 110) | def escape_once(input) function url_encode (line 125) | def url_encode(input) function url_decode (line 137) | def url_decode(input) function base64_encode (line 153) | def base64_encode(input) function base64_decode (line 164) | def base64_decode(input) function base64_url_safe_encode (line 178) | def base64_url_safe_encode(input) function base64_url_safe_decode (line 189) | def base64_url_safe_decode(input) function slice (line 206) | def slice(input, offset, length = nil) function truncate (line 236) | def truncate(input, length = 50, truncate_string = "...") function truncatewords (line 263) | def truncatewords(input, words = 15, truncate_string = "...") function split (line 290) | def split(input, pattern) function squish (line 303) | def squish(input) function strip (line 316) | def strip(input) function lstrip (line 328) | def lstrip(input) function rstrip (line 340) | def rstrip(input) function strip_html (line 352) | def strip_html(input) function strip_newlines (line 367) | def strip_newlines(input) function join (line 379) | def join(input, glue = ' ') function sort (line 391) | def sort(input, property = nil) function sort_natural (line 420) | def sort_natural(input, property = nil) function where (line 447) | def where(input, property, target_value = nil) function reject (line 460) | def reject(input, property, target_value = nil) function has (line 473) | def has(input, property, target_value = nil) function find (line 486) | def find(input, property, target_value = nil) function find_index (line 499) | def find_index(input, property, target_value = nil) function uniq (line 510) | def uniq(input, property = nil) function reverse (line 536) | def reverse(input) function map (line 548) | def map(input, property) function compact (line 570) | def compact(input, property = nil) function replace (line 596) | def replace(input, string, replacement = '') function replace_first (line 610) | def replace_first(input, string, replacement = '') function replace_last (line 624) | def replace_last(input, string, replacement) function remove (line 645) | def remove(input, string) function remove_first (line 656) | def remove_first(input, string) function remove_last (line 667) | def remove_last(input, string) function append (line 678) | def append(input, string) function concat (line 695) | def concat(input, array) function prepend (line 709) | def prepend(input, string) function newline_to_br (line 722) | def newline_to_br(input) function date (line 767) | def date(input, format) function first (line 783) | def first(array) function last (line 796) | def last(array) function abs (line 809) | def abs(input) function plus (line 821) | def plus(input, operand) function minus (line 832) | def minus(input, operand) function times (line 843) | def times(input, operand) function divided_by (line 854) | def divided_by(input, operand) function modulo (line 867) | def modulo(input, operand) function round (line 880) | def round(input, n = 0) function ceil (line 896) | def ceil(input) function floor (line 909) | def floor(input) function at_least (line 922) | def at_least(input, n) function at_most (line 937) | def at_most(input, n) function default (line 957) | def default(input, default_value = '', options = {}) function sum (line 970) | def sum(input, property = nil) function filter_array (line 997) | def filter_array(input, property, target_value, default_value = [], ... function raise_property_error (line 1016) | def raise_property_error(property) function apply_operation (line 1020) | def apply_operation(input, operand, operation) function nil_safe_compare (line 1025) | def nil_safe_compare(a, b) function nil_safe_casecmp (line 1039) | def nil_safe_casecmp(a, b) class InputIterator (line 1049) | class InputIterator method initialize (line 1052) | def initialize(input, context) method join (line 1065) | def join(glue) method concat (line 1080) | def concat(args) method reverse (line 1084) | def reverse method uniq (line 1088) | def uniq(&block) method compact (line 1095) | def compact method empty? (line 1099) | def empty? method each (line 1104) | def each FILE: lib/liquid/strainer_template.rb type Liquid (line 5) | module Liquid class StrainerTemplate (line 11) | class StrainerTemplate method initialize (line 12) | def initialize(context) method add_filter (line 17) | def add_filter(filter) method invokable? (line 30) | def invokable?(method) method inherited (line 34) | def inherited(subclass) method filter_method_names (line 39) | def filter_method_names method filter_methods (line 45) | def filter_methods method invoke (line 50) | def invoke(method, *args) FILE: lib/liquid/tablerowloop_drop.rb type Liquid (line 3) | module Liquid class TablerowloopDrop (line 9) | class TablerowloopDrop < Drop method initialize (line 10) | def initialize(length, cols) method index (line 40) | def index method index0 (line 48) | def index0 method col0 (line 56) | def col0 method rindex (line 64) | def rindex method rindex0 (line 72) | def rindex0 method first (line 80) | def first method last (line 88) | def last method col_first (line 96) | def col_first method col_last (line 104) | def col_last method increment! (line 110) | def increment! FILE: lib/liquid/tag.rb type Liquid (line 6) | module Liquid class Tag (line 7) | class Tag method parse (line 13) | def parse(tag_name, markup, tokenizer, parse_context) method disable_tags (line 19) | def disable_tags(*tag_names) method disabled_tags (line 29) | def disabled_tags method initialize (line 34) | def initialize(tag_name, markup, parse_context) method parse (line 41) | def parse(_tokens) method raw (line 44) | def raw method name (line 48) | def name method render (line 52) | def render(_context) method render_to_output_buffer (line 59) | def render_to_output_buffer(context, output) method blank? (line 65) | def blank? method safe_parse_expression (line 71) | def safe_parse_expression(parser) method parse_expression (line 75) | def parse_expression(markup, safe: false) FILE: lib/liquid/tag/disableable.rb type Liquid (line 3) | module Liquid class Tag (line 4) | class Tag type Disableable (line 5) | module Disableable function render_to_output_buffer (line 6) | def render_to_output_buffer(context, output) function disabled_error (line 14) | def disabled_error(context) FILE: lib/liquid/tag/disabler.rb type Liquid (line 3) | module Liquid class Tag (line 4) | class Tag type Disabler (line 5) | module Disabler function render_to_output_buffer (line 6) | def render_to_output_buffer(context, output) FILE: lib/liquid/tags.rb type Liquid (line 24) | module Liquid type Tags (line 25) | module Tags FILE: lib/liquid/tags/assign.rb type Liquid (line 3) | module Liquid class Assign (line 20) | class Assign < Tag method raise_syntax_error (line 24) | def self.raise_syntax_error(parse_context) method initialize (line 30) | def initialize(tag_name, markup, parse_context) method render_to_output_buffer (line 40) | def render_to_output_buffer(context, output) method blank? (line 47) | def blank? method assign_score_of (line 53) | def assign_score_of(val) class ParseTreeVisitor (line 73) | class ParseTreeVisitor < Liquid::ParseTreeVisitor method children (line 74) | def children FILE: lib/liquid/tags/break.rb type Liquid (line 3) | module Liquid class Break (line 21) | class Break < Tag method render_to_output_buffer (line 24) | def render_to_output_buffer(context, output) FILE: lib/liquid/tags/capture.rb type Liquid (line 3) | module Liquid class Capture (line 22) | class Capture < Block method initialize (line 25) | def initialize(tag_name, markup, options) method render_to_output_buffer (line 34) | def render_to_output_buffer(context, output) method blank? (line 42) | def blank? FILE: lib/liquid/tags/case.rb type Liquid (line 3) | module Liquid class Case (line 25) | class Case < Block method initialize (line 31) | def initialize(tag_name, markup, options) method parse (line 37) | def parse(tokens) method nodelist (line 50) | def nodelist method unknown_tag (line 54) | def unknown_tag(tag, markup, tokens) method render_to_output_buffer (line 65) | def render_to_output_buffer(context, output) method strict2_parse (line 89) | def strict2_parse(markup) method strict_parse (line 95) | def strict_parse(markup) method lax_parse (line 99) | def lax_parse(markup) method record_when_condition (line 107) | def record_when_condition(markup) method parse_strict2_when (line 117) | def parse_strict2_when(markup, body) method parse_lax_when (line 132) | def parse_lax_when(markup, body) method record_else_condition (line 146) | def record_else_condition(markup) class ParseTreeVisitor (line 156) | class ParseTreeVisitor < Liquid::ParseTreeVisitor method children (line 157) | def children FILE: lib/liquid/tags/comment.rb type Liquid (line 3) | module Liquid class Comment (line 17) | class Comment < Block method render_to_output_buffer (line 18) | def render_to_output_buffer(_context, output) method unknown_tag (line 22) | def unknown_tag(_tag, _markup, _tokens) method blank? (line 25) | def blank? method parse_body (line 31) | def parse_body(body, tokenizer) method parse_raw_tag_body (line 80) | def parse_raw_tag_body(tokenizer) FILE: lib/liquid/tags/continue.rb type Liquid (line 3) | module Liquid class Continue (line 12) | class Continue < Tag method render_to_output_buffer (line 15) | def render_to_output_buffer(context, output) FILE: lib/liquid/tags/cycle.rb type Liquid (line 3) | module Liquid class Cycle (line 17) | class Cycle < Tag method initialize (line 24) | def initialize(tag_name, markup, options) method named? (line 29) | def named? method render_to_output_buffer (line 33) | def render_to_output_buffer(context, output) method strict2_parse (line 59) | def strict2_parse(markup) method strict_parse (line 94) | def strict_parse(markup) method lax_parse (line 98) | def lax_parse(markup) method variables_from_string (line 113) | def variables_from_string(markup) method maybe_dup_lookup (line 130) | def maybe_dup_lookup(var) class ParseTreeVisitor (line 134) | class ParseTreeVisitor < Liquid::ParseTreeVisitor method children (line 135) | def children FILE: lib/liquid/tags/decrement.rb type Liquid (line 3) | module Liquid class Decrement (line 25) | class Decrement < Tag method initialize (line 28) | def initialize(tag_name, markup, options) method render_to_output_buffer (line 33) | def render_to_output_buffer(context, output) FILE: lib/liquid/tags/doc.rb type Liquid (line 3) | module Liquid class Doc (line 30) | class Doc < Block method initialize (line 33) | def initialize(tag_name, markup, parse_context) method parse (line 38) | def parse(tokens) method render_to_output_buffer (line 57) | def render_to_output_buffer(_context, output) method blank? (line 61) | def blank? method nodelist (line 65) | def nodelist method ensure_valid_markup (line 71) | def ensure_valid_markup(tag_name, markup, parse_context) method raise_nested_doc_error (line 77) | def raise_nested_doc_error FILE: lib/liquid/tags/echo.rb type Liquid (line 3) | module Liquid class Echo (line 21) | class Echo < Tag method initialize (line 24) | def initialize(tag_name, markup, parse_context) method render (line 29) | def render(context) class ParseTreeVisitor (line 33) | class ParseTreeVisitor < Liquid::ParseTreeVisitor method children (line 34) | def children FILE: lib/liquid/tags/for.rb type Liquid (line 3) | module Liquid class For (line 27) | class For < Block method initialize (line 32) | def initialize(tag_name, markup, options) method parse (line 40) | def parse(tokens) method nodelist (line 52) | def nodelist method unknown_tag (line 56) | def unknown_tag(tag, markup, tokens) method render_to_output_buffer (line 61) | def render_to_output_buffer(context, output) method lax_parse (line 75) | def lax_parse(markup) method strict_parse (line 90) | def strict_parse(markup) method strict2_parse (line 114) | def strict2_parse(markup) method collection_segment (line 118) | def collection_segment(context) method render_segment (line 150) | def render_segment(context, output, segment) method set_attribute (line 181) | def set_attribute(key, expr, safe: false) method render_else (line 194) | def render_else(context, output) class ParseTreeVisitor (line 202) | class ParseTreeVisitor < Liquid::ParseTreeVisitor method children (line 203) | def children FILE: lib/liquid/tags/if.rb type Liquid (line 3) | module Liquid class If (line 16) | class If < Block method initialize (line 23) | def initialize(tag_name, markup, options) method nodelist (line 29) | def nodelist method parse (line 33) | def parse(tokens) method unknown_tag (line 45) | def unknown_tag(tag, markup, tokens) method render_to_output_buffer (line 53) | def render_to_output_buffer(context, output) method strict2_parse (line 69) | def strict2_parse(markup) method push_block (line 73) | def push_block(tag, markup) method parse_expression (line 84) | def parse_expression(markup, safe: false) method lax_parse (line 88) | def lax_parse(markup) method strict_parse (line 108) | def strict_parse(markup) method parse_binary_comparisons (line 115) | def parse_binary_comparisons(p) method parse_comparison (line 126) | def parse_comparison(p) class ParseTreeVisitor (line 136) | class ParseTreeVisitor < Liquid::ParseTreeVisitor method children (line 137) | def children FILE: lib/liquid/tags/ifchanged.rb type Liquid (line 3) | module Liquid class Ifchanged (line 4) | class Ifchanged < Block method render_to_output_buffer (line 5) | def render_to_output_buffer(context, output) FILE: lib/liquid/tags/include.rb type Liquid (line 3) | module Liquid class Include (line 20) | class Include < Tag method initialize (line 28) | def initialize(tag_name, markup, options) method parse (line 33) | def parse(_tokens) method render_to_output_buffer (line 36) | def render_to_output_buffer(context, output) method strict2_parse (line 87) | def strict2_parse(markup) method strict_parse (line 107) | def strict_parse(markup) method lax_parse (line 111) | def lax_parse(markup) class ParseTreeVisitor (line 130) | class ParseTreeVisitor < Liquid::ParseTreeVisitor method children (line 131) | def children FILE: lib/liquid/tags/increment.rb type Liquid (line 3) | module Liquid class Increment (line 25) | class Increment < Tag method initialize (line 28) | def initialize(tag_name, markup, options) method render_to_output_buffer (line 33) | def render_to_output_buffer(context, output) FILE: lib/liquid/tags/inline_comment.rb type Liquid (line 3) | module Liquid class InlineComment (line 4) | class InlineComment < Tag method initialize (line 5) | def initialize(tag_name, markup, options) method render_to_output_buffer (line 20) | def render_to_output_buffer(_context, output) method blank? (line 24) | def blank? FILE: lib/liquid/tags/raw.rb type Liquid (line 3) | module Liquid class Raw (line 15) | class Raw < Block method initialize (line 18) | def initialize(tag_name, markup, parse_context) method parse (line 24) | def parse(tokens) method render_to_output_buffer (line 38) | def render_to_output_buffer(_context, output) method nodelist (line 43) | def nodelist method blank? (line 47) | def blank? method ensure_valid_markup (line 53) | def ensure_valid_markup(tag_name, markup, parse_context) FILE: lib/liquid/tags/render.rb type Liquid (line 3) | module Liquid class Render (line 28) | class Render < Tag method initialize (line 36) | def initialize(tag_name, markup, options) method for_loop? (line 41) | def for_loop? method render_to_output_buffer (line 45) | def render_to_output_buffer(context, output) method render_tag (line 49) | def render_tag(context, output) method strict2_parse (line 88) | def strict2_parse(markup) method strict2_template_name (line 110) | def strict2_template_name(p) method strict_parse (line 114) | def strict_parse(markup) method lax_parse (line 118) | def lax_parse(markup) class ParseTreeVisitor (line 136) | class ParseTreeVisitor < Liquid::ParseTreeVisitor method children (line 137) | def children FILE: lib/liquid/tags/table_row.rb type Liquid (line 3) | module Liquid class TableRow (line 26) | class TableRow < Block method initialize (line 32) | def initialize(tag_name, markup, options) method strict2_parse (line 37) | def strict2_parse(markup) method strict_parse (line 65) | def strict_parse(markup) method lax_parse (line 69) | def lax_parse(markup) method render_to_output_buffer (line 82) | def render_to_output_buffer(context, output) class ParseTreeVisitor (line 123) | class ParseTreeVisitor < Liquid::ParseTreeVisitor method children (line 124) | def children method to_integer (line 131) | def to_integer(value) FILE: lib/liquid/tags/unless.rb type Liquid (line 5) | module Liquid class Unless (line 21) | class Unless < If method render_to_output_buffer (line 22) | def render_to_output_buffer(context, output) FILE: lib/liquid/template.rb type Liquid (line 3) | module Liquid class Template (line 17) | class Template method error_mode= (line 29) | def error_mode=(mode) method error_mode (line 34) | def error_mode method default_exception_renderer= (line 38) | def default_exception_renderer=(renderer) method default_exception_renderer (line 43) | def default_exception_renderer method file_system= (line 47) | def file_system=(file_system) method file_system (line 52) | def file_system method tags (line 56) | def tags method register_tag (line 60) | def register_tag(name, klass) method register_filter (line 67) | def register_filter(mod) method default_resource_limits= (line 72) | def default_resource_limits=(limits) method default_resource_limits (line 77) | def default_resource_limits method parse (line 84) | def parse(source, options = {}) method initialize (line 90) | def initialize(environment: Environment.default) method parse (line 98) | def parse(source, options = {}) method registers (line 111) | def registers method assigns (line 115) | def assigns method instance_assigns (line 119) | def instance_assigns method errors (line 123) | def errors method render (line 141) | def render(*args) method render! (line 200) | def render!(*args) method render_to_output_buffer (line 205) | def render_to_output_buffer(context, output) method configure_options (line 211) | def configure_options(options) method apply_options_to_context (line 230) | def apply_options_to_context(context, options) FILE: lib/liquid/template_factory.rb type Liquid (line 3) | module Liquid class TemplateFactory (line 4) | class TemplateFactory method for (line 5) | def for(_template_name) FILE: lib/liquid/tokenizer.rb type Liquid (line 5) | module Liquid class Tokenizer (line 6) | class Tokenizer method initialize (line 17) | def initialize( method shift (line 37) | def shift method tokenize (line 53) | def tokenize method shift_normal (line 64) | def shift_normal method next_token (line 72) | def next_token method next_text_token (line 95) | def next_text_token method next_variable_token (line 114) | def next_variable_token method next_tag_token (line 147) | def next_tag_token method next_tag_token_with_start (line 156) | def next_tag_token_with_start(start) FILE: lib/liquid/usage.rb type Liquid (line 3) | module Liquid type Usage (line 4) | module Usage function increment (line 5) | def self.increment(name) FILE: lib/liquid/utils.rb type Liquid (line 3) | module Liquid type Utils (line 4) | module Utils function slice_collection (line 8) | def self.slice_collection(collection, from, to) function slice_collection_using_each (line 16) | def self.slice_collection_using_each(collection, from, to) function to_integer (line 41) | def self.to_integer(num) function to_number (line 51) | def self.to_number(obj) function to_date (line 68) | def self.to_date(obj) function to_liquid_value (line 88) | def self.to_liquid_value(obj) function to_s (line 96) | def self.to_s(obj, seen = {}) function inspect (line 116) | def self.inspect(obj, seen = {}) function array_inspect (line 134) | def self.array_inspect(arr, seen = {}) function hash_inspect (line 160) | def self.hash_inspect(hash, seen = {}) FILE: lib/liquid/variable.rb type Liquid (line 3) | module Liquid class Variable (line 14) | class Variable method initialize (line 27) | def initialize(markup, parse_context) method raw (line 36) | def raw method markup_context (line 40) | def markup_context(markup) method lax_parse (line 44) | def lax_parse(markup) method strict_parse (line 62) | def strict_parse(markup) method strict2_parse (line 77) | def strict2_parse(markup) method parse_filterargs (line 88) | def parse_filterargs(p) method render (line 96) | def render(context) method render_to_output_buffer (line 107) | def render_to_output_buffer(context, output) method render_obj_to_output (line 113) | def render_obj_to_output(obj, output) method disabled? (line 126) | def disabled?(_context) method disabled_tags (line 130) | def disabled_tags method lax_parse_filter_expressions (line 136) | def lax_parse_filter_expressions(filter_name, unparsed_args) method strict2_parse_filter_expressions (line 159) | def strict2_parse_filter_expressions(p) method argument (line 177) | def argument(p, positional_arguments, keyword_arguments) method end_of_arguments? (line 188) | def end_of_arguments?(p) method evaluate_filter_expressions (line 192) | def evaluate_filter_expressions(context, filter_args, filter_kwargs) class ParseTreeVisitor (line 204) | class ParseTreeVisitor < Liquid::ParseTreeVisitor method children (line 205) | def children FILE: lib/liquid/variable_lookup.rb type Liquid (line 3) | module Liquid class VariableLookup (line 4) | class VariableLookup method parse (line 9) | def self.parse(markup, string_scanner = StringScanner.new(""), cache... method initialize (line 13) | def initialize(markup, string_scanner = StringScanner.new(""), cache... method lookup_command? (line 43) | def lookup_command?(lookup_index) method evaluate (line 47) | def evaluate(context) method == (line 93) | def ==(other) method state (line 99) | def state class ParseTreeVisitor (line 103) | class ParseTreeVisitor < Liquid::ParseTreeVisitor method children (line 104) | def children FILE: lib/liquid/version.rb type Liquid (line 4) | module Liquid FILE: performance/memory_profile.rb class Profiler (line 8) | class Profiler method run (line 12) | def self.run method initialize (line 17) | def initialize method profile (line 23) | def profile(phase, &block) method tabulate (line 40) | def tabulate method sanitize (line 51) | def sanitize(string) FILE: performance/shopify/comment_form.rb class CommentForm (line 3) | class CommentForm < Liquid::Block method initialize (line 6) | def initialize(tag_name, markup, options) method render_to_output_buffer (line 17) | def render_to_output_buffer(context, output) method wrap_in_form (line 34) | def wrap_in_form(article, input) FILE: performance/shopify/database.rb type Database (line 5) | module Database function tables (line 10) | def self.tables FILE: performance/shopify/json_filter.rb type JsonFilter (line 5) | module JsonFilter function json (line 6) | def json(object) FILE: performance/shopify/money_filter.rb type MoneyFilter (line 3) | module MoneyFilter function money_with_currency (line 4) | def money_with_currency(money) function money (line 9) | def money(money) function currency (line 16) | def currency FILE: performance/shopify/paginate.rb class Paginate (line 3) | class Paginate < Liquid::Block method initialize (line 6) | def initialize(tag_name, markup, options) method render_to_output_buffer (line 26) | def render_to_output_buffer(context, output) method no_link (line 81) | def no_link(title) method link (line 85) | def link(title, page) method current_url (line 89) | def current_url FILE: performance/shopify/shop_filter.rb type ShopFilter (line 3) | module ShopFilter function asset_url (line 4) | def asset_url(input) function global_asset_url (line 8) | def global_asset_url(input) function shopify_asset_url (line 12) | def shopify_asset_url(input) function script_tag (line 16) | def script_tag(url) function stylesheet_tag (line 20) | def stylesheet_tag(url, media = "all") function link_to (line 24) | def link_to(link, url, title = "") function img_tag (line 28) | def img_tag(url, alt = "") function link_to_vendor (line 32) | def link_to_vendor(vendor) function link_to_type (line 40) | def link_to_type(type) function url_for_vendor (line 48) | def url_for_vendor(vendor_title) function url_for_type (line 52) | def url_for_type(type_title) function product_img_url (line 56) | def product_img_url(url, style = 'small') function default_pagination (line 71) | def default_pagination(paginate) function pluralize (line 91) | def pluralize(input, singular, plural) function to_handle (line 97) | def to_handle(str) FILE: performance/shopify/tag_filter.rb type TagFilter (line 3) | module TagFilter function link_to_tag (line 4) | def link_to_tag(label, tag) function highlight_active_tag (line 8) | def highlight_active_tag(tag, css_class = 'active') function link_to_add_tag (line 16) | def link_to_add_tag(label, tag) function link_to_remove_tag (line 21) | def link_to_remove_tag(label, tag) FILE: performance/shopify/weight_filter.rb type WeightFilter (line 3) | module WeightFilter function weight (line 4) | def weight(grams) function weight_with_unit (line 8) | def weight_with_unit(grams) FILE: performance/theme_runner.rb class ThemeRunner (line 14) | class ThemeRunner class FileSystem (line 15) | class FileSystem method initialize (line 16) | def initialize(path) method read_template_file (line 21) | def read_template_file(template_path) method initialize (line 28) | def initialize method compile (line 44) | def compile method tokenize (line 52) | def tokenize method run (line 65) | def run method render (line 72) | def render method render_layout (line 89) | def render_layout(template, layout, assigns) method compile_and_render (line 94) | def compile_and_render(template, layout, assigns, page_template, templ... method compile_all_tests (line 99) | def compile_all_tests method compile_test (line 107) | def compile_test(template, layout, assigns, page_template, template_file) method each_test (line 120) | def each_test method init_template (line 132) | def init_template(page_template, template_file) FILE: test/integration/assign_test.rb class AssignTest (line 5) | class AssignTest < Minitest::Test method test_assign_with_hyphen_in_variable_name (line 8) | def test_assign_with_hyphen_in_variable_name method test_assigned_variable (line 16) | def test_assigned_variable method test_assign_with_filter (line 30) | def test_assign_with_filter method test_assign_syntax_error (line 38) | def test_assign_syntax_error method test_assign_uses_error_mode (line 42) | def test_assign_uses_error_mode method test_expression_with_whitespace_in_square_brackets (line 51) | def test_expression_with_whitespace_in_square_brackets method test_assign_score_exceeding_resource_limit (line 56) | def test_assign_score_exceeding_resource_limit method test_assign_score_exceeding_limit_from_composite_object (line 67) | def test_assign_score_exceeding_limit_from_composite_object method test_assign_score_of_int (line 78) | def test_assign_score_of_int method test_assign_score_of_string_counts_bytes (line 82) | def test_assign_score_of_string_counts_bytes method test_assign_score_of_array (line 88) | def test_assign_score_of_array method test_assign_score_of_hash (line 94) | def test_assign_score_of_hash class ObjectWrapperDrop (line 102) | class ObjectWrapperDrop < Liquid::Drop method initialize (line 103) | def initialize(obj) method value (line 107) | def value method assign_score_of (line 112) | def assign_score_of(obj) FILE: test/integration/blank_test.rb class FoobarTag (line 5) | class FoobarTag < Liquid::Tag method render_to_output_buffer (line 6) | def render_to_output_buffer(_context, output) class BlankTest (line 12) | class BlankTest < Minitest::Test method wrap_in_for (line 16) | def wrap_in_for(body) method wrap_in_if (line 20) | def wrap_in_if(body) method wrap (line 24) | def wrap(body) method test_new_tags_are_not_blank_by_default (line 28) | def test_new_tags_are_not_blank_by_default method test_loops_are_blank (line 34) | def test_loops_are_blank method test_if_else_are_blank (line 38) | def test_if_else_are_blank method test_unless_is_blank (line 42) | def test_unless_is_blank method test_mark_as_blank_only_during_parsing (line 46) | def test_mark_as_blank_only_during_parsing method test_comments_are_blank (line 50) | def test_comments_are_blank method test_captures_are_blank (line 54) | def test_captures_are_blank method test_nested_blocks_are_blank_but_only_if_all_children_are (line 58) | def test_nested_blocks_are_blank_but_only_if_all_children_are method test_assigns_are_blank (line 67) | def test_assigns_are_blank method test_whitespace_is_blank (line 71) | def test_whitespace_is_blank method test_whitespace_is_not_blank_if_other_stuff_is_present (line 76) | def test_whitespace_is_not_blank_if_other_stuff_is_present method test_increment_is_not_blank (line 81) | def test_increment_is_not_blank method test_cycle_is_not_blank (line 85) | def test_cycle_is_not_blank method test_raw_is_not_blank (line 89) | def test_raw_is_not_blank method test_include_is_blank (line 93) | def test_include_is_blank method test_case_is_blank (line 111) | def test_case_is_blank FILE: test/integration/block_test.rb class BlockTest (line 5) | class BlockTest < Minitest::Test method test_unexpected_end_tag (line 8) | def test_unexpected_end_tag method test_with_custom_tag (line 13) | def test_with_custom_tag method test_custom_block_tags_have_a_default_render_to_output_buffer_method_for_backwards_compatibility (line 19) | def test_custom_block_tags_have_a_default_render_to_output_buffer_meth... FILE: test/integration/capture_test.rb class CaptureTest (line 5) | class CaptureTest < Minitest::Test method test_captures_block_content_in_variable (line 8) | def test_captures_block_content_in_variable method test_capture_with_hyphen_in_variable_name (line 12) | def test_capture_with_hyphen_in_variable_name method test_capture_to_variable_from_outer_scope_if_existing (line 20) | def test_capture_to_variable_from_outer_scope_if_existing method test_assigning_from_capture (line 34) | def test_assigning_from_capture method test_increment_assign_score_by_bytes_not_characters (line 47) | def test_increment_assign_score_by_bytes_not_characters FILE: test/integration/context_test.rb class HundredCentes (line 5) | class HundredCentes method to_liquid (line 6) | def to_liquid class CentsDrop (line 11) | class CentsDrop < Liquid::Drop method amount (line 12) | def amount method non_zero? (line 16) | def non_zero? class ContextSensitiveDrop (line 21) | class ContextSensitiveDrop < Liquid::Drop method test (line 22) | def test class Category (line 27) | class Category method initialize (line 30) | def initialize(name) method to_liquid (line 34) | def to_liquid class ProductsDrop (line 39) | class ProductsDrop < Liquid::Drop method initialize (line 40) | def initialize(products) method size (line 44) | def size method to_liquid (line 48) | def to_liquid class CategoryDrop (line 57) | class CategoryDrop < Liquid::Drop method initialize (line 60) | def initialize(category) class CounterDrop (line 65) | class CounterDrop < Liquid::Drop method count (line 66) | def count class ArrayLike (line 72) | class ArrayLike method fetch (line 73) | def fetch(index) method [] (line 76) | def [](index) method to_liquid (line 82) | def to_liquid class ContextTest (line 87) | class ContextTest < Minitest::Test method setup (line 90) | def setup method test_variables (line 94) | def test_variables method test_variables_not_existing (line 122) | def test_variables_not_existing method test_scoping (line 126) | def test_scoping method test_length_query (line 141) | def test_length_query method test_hyphenated_variable (line 161) | def test_hyphenated_variable method test_add_filter (line 165) | def test_add_filter method test_only_intended_filters_make_it_there (line 183) | def test_only_intended_filters_make_it_there method test_add_item_in_outer_scope (line 197) | def test_add_item_in_outer_scope method test_add_item_in_inner_scope (line 205) | def test_add_item_in_inner_scope method test_hierachical_data (line 213) | def test_hierachical_data method test_keywords (line 219) | def test_keywords method test_digits (line 224) | def test_digits method test_strings (line 229) | def test_strings method test_merge (line 234) | def test_merge method test_array_notation (line 242) | def test_array_notation method test_recoursive_array_notation (line 249) | def test_recoursive_array_notation method test_hash_to_array_transition (line 257) | def test_hash_to_array_transition method test_try_first (line 271) | def test_try_first method test_access_hashes_with_hash_notation (line 285) | def test_access_hashes_with_hash_notation method test_access_variable_with_hash_notation (line 298) | def test_access_variable_with_hash_notation method test_access_hashes_with_hash_access_variables (line 303) | def test_access_hashes_with_hash_access_variables method test_hash_notation_only_for_hash_access (line 314) | def test_hash_notation_only_for_hash_access method test_first_can_appear_in_middle_of_callchain (line 322) | def test_first_can_appear_in_middle_of_callchain method test_cents (line 331) | def test_cents method test_nested_cents (line 336) | def test_nested_cents method test_cents_through_drop (line 344) | def test_cents_through_drop method test_nested_cents_through_drop (line 349) | def test_nested_cents_through_drop method test_drop_methods_with_question_marks (line 354) | def test_drop_methods_with_question_marks method test_context_from_within_drop (line 359) | def test_context_from_within_drop method test_nested_context_from_within_drop (line 364) | def test_nested_context_from_within_drop method test_ranges (line 369) | def test_ranges method test_cents_through_drop_nestedly (line 378) | def test_cents_through_drop_nestedly method test_drop_with_variable_called_only_once (line 386) | def test_drop_with_variable_called_only_once method test_drop_with_key_called_only_once (line 394) | def test_drop_with_key_called_only_once method test_proc_as_variable (line 402) | def test_proc_as_variable method test_lambda_as_variable (line 408) | def test_lambda_as_variable method test_nested_lambda_as_variable (line 414) | def test_nested_lambda_as_variable method test_array_containing_lambda_as_variable (line 420) | def test_array_containing_lambda_as_variable method test_lambda_is_called_once (line 426) | def test_lambda_is_called_once method test_nested_lambda_is_called_once (line 439) | def test_nested_lambda_is_called_once method test_lambda_in_array_is_called_once (line 454) | def test_lambda_in_array_is_called_once method test_access_to_context_from_proc (line 468) | def test_access_to_context_from_proc method test_to_liquid_and_context_at_first_level (line 476) | def test_to_liquid_and_context_at_first_level method test_interrupt_avoids_object_allocations (line 482) | def test_interrupt_avoids_object_allocations method test_context_initialization_with_a_proc_in_environment (line 489) | def test_context_initialization_with_a_proc_in_environment method test_apply_global_filter (line 496) | def test_apply_global_filter method test_static_environments_are_read_with_lower_priority_than_environments (line 505) | def test_static_environments_are_read_with_lower_priority_than_environ... method test_apply_global_filter_when_no_global_filter_exist (line 515) | def test_apply_global_filter_when_no_global_filter_exist method test_new_isolated_subcontext_does_not_inherit_variables (line 520) | def test_new_isolated_subcontext_does_not_inherit_variables method test_new_isolated_subcontext_inherits_static_environment (line 528) | def test_new_isolated_subcontext_inherits_static_environment method test_new_isolated_subcontext_inherits_resource_limits (line 535) | def test_new_isolated_subcontext_inherits_resource_limits method test_new_isolated_subcontext_inherits_exception_renderer (line 542) | def test_new_isolated_subcontext_inherits_exception_renderer method test_new_isolated_subcontext_does_not_inherit_non_static_registers (line 549) | def test_new_isolated_subcontext_does_not_inherit_non_static_registers method test_new_isolated_subcontext_inherits_static_registers (line 559) | def test_new_isolated_subcontext_inherits_static_registers method test_new_isolated_subcontext_registers_do_not_pollute_context (line 565) | def test_new_isolated_subcontext_registers_do_not_pollute_context method test_new_isolated_subcontext_inherits_filters (line 572) | def test_new_isolated_subcontext_inherits_filters method test_disables_tag_specified (line 586) | def test_disables_tag_specified method test_disables_nested_tags (line 595) | def test_disables_nested_tags method test_override_global_filter (line 615) | def test_override_global_filter method test_has_key_will_not_add_an_error_for_missing_keys (line 634) | def test_has_key_will_not_add_an_error_for_missing_keys method test_key_lookup_will_raise_for_missing_keys_when_strict_variables_is_enabled (line 642) | def test_key_lookup_will_raise_for_missing_keys_when_strict_variables_... method test_has_key_will_not_raise_for_missing_keys_when_strict_variables_is_enabled (line 650) | def test_has_key_will_not_raise_for_missing_keys_when_strict_variables... method test_context_always_uses_static_registers (line 657) | def test_context_always_uses_static_registers method test_variable_to_liquid_returns_contextual_drop (line 671) | def test_variable_to_liquid_returns_contextual_drop method test_new_isolated_context_inherits_parent_environment (line 690) | def test_new_isolated_context_inherits_parent_environment method test_newly_built_context_inherits_parent_environment (line 698) | def test_newly_built_context_inherits_parent_environment method assert_no_object_allocations (line 707) | def assert_no_object_allocations FILE: test/integration/document_test.rb class DocumentTest (line 5) | class DocumentTest < Minitest::Test method test_unexpected_outer_tag (line 8) | def test_unexpected_outer_tag method test_unknown_tag (line 13) | def test_unknown_tag FILE: test/integration/drop_test.rb class ContextDrop (line 5) | class ContextDrop < Liquid::Drop method scopes (line 6) | def scopes method scopes_as_array (line 10) | def scopes_as_array method loop_pos (line 14) | def loop_pos method liquid_method_missing (line 18) | def liquid_method_missing(method) class ProductDrop (line 23) | class ProductDrop < Liquid::Drop class TextDrop (line 24) | class TextDrop < Liquid::Drop method array (line 25) | def array method text (line 29) | def text class CatchallDrop (line 34) | class CatchallDrop < Liquid::Drop method liquid_method_missing (line 35) | def liquid_method_missing(method) method texts (line 40) | def texts method catchall (line 44) | def catchall method context (line 48) | def context method callmenot (line 54) | def callmenot class EnumerableDrop (line 59) | class EnumerableDrop < Liquid::Drop method liquid_method_missing (line 60) | def liquid_method_missing(method) method size (line 64) | def size method first (line 68) | def first method count (line 72) | def count method min (line 76) | def min method max (line 80) | def max method each (line 84) | def each class RealEnumerableDrop (line 91) | class RealEnumerableDrop < Liquid::Drop method liquid_method_missing (line 94) | def liquid_method_missing(method) method each (line 98) | def each class DropsTest (line 105) | class DropsTest < Minitest::Test method test_product_drop (line 108) | def test_product_drop method test_drop_does_only_respond_to_whitelisted_methods (line 113) | def test_drop_does_only_respond_to_whitelisted_methods method test_drops_respond_to_to_liquid (line 122) | def test_drops_respond_to_to_liquid method test_text_drop (line 127) | def test_text_drop method test_catchall_unknown_method (line 132) | def test_catchall_unknown_method method test_catchall_integer_argument_drop (line 137) | def test_catchall_integer_argument_drop method test_text_array_drop (line 142) | def test_text_array_drop method test_context_drop (line 147) | def test_context_drop method test_context_drop_array_with_map (line 152) | def test_context_drop_array_with_map method test_nested_context_drop (line 157) | def test_nested_context_drop method test_protected (line 162) | def test_protected method test_object_methods_not_allowed (line 167) | def test_object_methods_not_allowed method test_scope (line 174) | def test_scope method test_scope_though_proc (line 180) | def test_scope_though_proc method test_scope_with_assigns (line 186) | def test_scope_with_assigns method test_scope_from_tags (line 193) | def test_scope_from_tags method test_access_context_from_drop (line 199) | def test_access_context_from_drop method test_enumerable_drop (line 203) | def test_enumerable_drop method test_enumerable_drop_size (line 207) | def test_enumerable_drop_size method test_enumerable_drop_will_invoke_liquid_method_missing_for_clashing_method_names (line 211) | def test_enumerable_drop_will_invoke_liquid_method_missing_for_clashin... method test_some_enumerable_methods_still_get_invoked (line 220) | def test_some_enumerable_methods_still_get_invoked method test_empty_string_value_access (line 238) | def test_empty_string_value_access method test_nil_value_access (line 242) | def test_nil_value_access method test_default_to_s_on_drops (line 246) | def test_default_to_s_on_drops method test_invokable_methods (line 251) | def test_invokable_methods FILE: test/integration/error_handling_test.rb class ErrorHandlingTest (line 5) | class ErrorHandlingTest < Minitest::Test method test_templates_parsed_with_line_numbers_renders_them_in_errors (line 8) | def test_templates_parsed_with_line_numbers_renders_them_in_errors method test_standard_error (line 41) | def test_standard_error method test_syntax (line 49) | def test_syntax method test_argument (line 57) | def test_argument method test_missing_endtag_parse_time_error (line 65) | def test_missing_endtag_parse_time_error method test_unrecognized_operator (line 69) | def test_unrecognized_operator method test_lax_unrecognized_operator (line 77) | def test_lax_unrecognized_operator method test_with_line_numbers_adds_numbers_to_parser_errors (line 84) | def test_with_line_numbers_adds_numbers_to_parser_errors method test_with_line_numbers_adds_numbers_to_parser_errors_with_whitespace_trim (line 95) | def test_with_line_numbers_adds_numbers_to_parser_errors_with_whitespa... method test_parsing_warn_with_line_numbers_adds_numbers_to_lexer_errors (line 107) | def test_parsing_warn_with_line_numbers_adds_numbers_to_lexer_errors method test_parsing_strict_with_line_numbers_adds_numbers_to_lexer_errors (line 126) | def test_parsing_strict_with_line_numbers_adds_numbers_to_lexer_errors method test_syntax_errors_in_nested_blocks_have_correct_line_number (line 144) | def test_syntax_errors_in_nested_blocks_have_correct_line_number method test_strict_error_messages (line 158) | def test_strict_error_messages method test_warnings (line 170) | def test_warnings method test_warning_line_numbers (line 179) | def test_warning_line_numbers method test_exceptions_propagate (line 189) | def test_exceptions_propagate method test_default_exception_renderer_with_internal_error (line 196) | def test_default_exception_renderer_with_internal_error method test_setting_default_exception_renderer (line 205) | def test_setting_default_exception_renderer method test_setting_exception_renderer_on_environment (line 221) | def test_setting_exception_renderer_on_environment method test_exception_renderer_exposing_non_liquid_error (line 236) | def test_exception_renderer_exposing_non_liquid_error class TestFileSystem (line 252) | class TestFileSystem method read_template_file (line 253) | def read_template_file(_template_path) method test_included_template_name_with_line_numbers (line 258) | def test_included_template_name_with_line_numbers method test_bug_compatible_silencing_of_errors_in_blank_nodes (line 267) | def test_bug_compatible_silencing_of_errors_in_blank_nodes method test_syntax_error_is_raised_with_template_name (line 275) | def test_syntax_error_is_raised_with_template_name method test_syntax_error_is_raised_with_template_name_from_template_factory (line 294) | def test_syntax_error_is_raised_with_template_name_from_template_factory method test_error_is_raised_during_parse_with_template_name (line 316) | def test_error_is_raised_during_parse_with_template_name method test_internal_error_is_raised_with_template_name (line 332) | def test_internal_error_is_raised_with_template_name FILE: test/integration/expression_test.rb class ExpressionTest (line 6) | class ExpressionTest < Minitest::Test method test_keyword_literals (line 7) | def test_keyword_literals method test_string (line 12) | def test_string method test_int (line 20) | def test_int method test_float (line 26) | def test_float method test_range (line 45) | def test_range method test_quirky_negative_sign_expression_markup (line 59) | def test_quirky_negative_sign_expression_markup method test_expression_cache (line 72) | def test_expression_cache method test_expression_cache_with_true_boolean (line 93) | def test_expression_cache_with_true_boolean method test_expression_cache_with_lru_redux (line 117) | def test_expression_cache_with_lru_redux method test_disable_expression_cache (line 138) | def test_disable_expression_cache method test_safe_parse_with_variable_lookup (line 155) | def test_safe_parse_with_variable_lookup method test_safe_parse_with_number (line 165) | def test_safe_parse_with_number method test_safe_parse_raises_syntax_error_for_invalid_expression (line 173) | def test_safe_parse_raises_syntax_error_for_invalid_expression method assert_expression_result (line 186) | def assert_expression_result(expect, markup, **assigns) FILE: test/integration/filter_kwarg_test.rb class FilterKwargTest (line 5) | class FilterKwargTest < Minitest::Test type KwargFilter (line 6) | module KwargFilter function html_tag (line 7) | def html_tag(_tag, attributes) method test_can_parse_data_kwargs (line 16) | def test_can_parse_data_kwargs FILE: test/integration/filter_test.rb type MoneyFilter (line 5) | module MoneyFilter function money (line 6) | def money(input) function money_with_underscore (line 10) | def money_with_underscore(input) type CanadianMoneyFilter (line 15) | module CanadianMoneyFilter function money (line 16) | def money(input) type SubstituteFilter (line 21) | module SubstituteFilter function substitute (line 22) | def substitute(input, params = {}) class FiltersTest (line 27) | class FiltersTest < Minitest::Test type OverrideObjectMethodFilter (line 30) | module OverrideObjectMethodFilter function tap (line 31) | def tap(_input) method setup (line 36) | def setup method test_local_filter (line 40) | def test_local_filter method test_underscore_in_filter_name (line 47) | def test_underscore_in_filter_name method test_second_filter_overwrites_first (line 53) | def test_second_filter_overwrites_first method test_size (line 61) | def test_size method test_join (line 65) | def test_join method test_sort (line 69) | def test_sort method test_sort_natural (line 85) | def test_sort_natural method test_compact (line 105) | def test_compact method test_strip_html (line 125) | def test_strip_html method test_strip_html_ignore_comments_with_html (line 129) | def test_strip_html_ignore_comments_with_html method test_capitalize (line 137) | def test_capitalize method test_nonexistent_filter_is_ignored (line 141) | def test_nonexistent_filter_is_ignored method test_filter_with_keyword_arguments (line 145) | def test_filter_with_keyword_arguments method test_override_object_method_in_filter (line 153) | def test_override_object_method_in_filter method test_liquid_argument_error (line 160) | def test_liquid_argument_error class FiltersInTemplate (line 170) | class FiltersInTemplate < Minitest::Test method test_local_global (line 173) | def test_local_global method test_local_filter_with_deprecated_syntax (line 181) | def test_local_filter_with_deprecated_syntax class TestObject (line 187) | class TestObject < Liquid::Drop method initialize (line 189) | def initialize(a) FILE: test/integration/hash_ordering_test.rb class HashOrderingTest (line 5) | class HashOrderingTest < Minitest::Test type MoneyFilter (line 6) | module MoneyFilter function money (line 7) | def money(input) type CanadianMoneyFilter (line 12) | module CanadianMoneyFilter function money (line 13) | def money(input) method test_global_register_order (line 20) | def test_global_register_order FILE: test/integration/hash_rendering_test.rb class HashRenderingTest (line 5) | class HashRenderingTest < Minitest::Test method test_render_empty_hash (line 6) | def test_render_empty_hash method test_render_hash_with_string_keys_and_values (line 10) | def test_render_hash_with_string_keys_and_values method test_render_hash_with_symbol_keys_and_integer_values (line 14) | def test_render_hash_with_symbol_keys_and_integer_values method test_render_nested_hash (line 18) | def test_render_nested_hash method test_render_hash_with_array_values (line 22) | def test_render_hash_with_array_values method test_render_recursive_hash (line 26) | def test_render_recursive_hash method test_hash_with_downcase_filter (line 32) | def test_hash_with_downcase_filter method test_hash_with_upcase_filter (line 36) | def test_hash_with_upcase_filter method test_hash_with_strip_filter (line 40) | def test_hash_with_strip_filter method test_hash_with_escape_filter (line 44) | def test_hash_with_escape_filter method test_hash_with_url_encode_filter (line 48) | def test_hash_with_url_encode_filter method test_hash_with_strip_html_filter (line 52) | def test_hash_with_strip_html_filter method test_hash_with_truncate__20_filter (line 56) | def test_hash_with_truncate__20_filter method test_hash_with_replace___key____replaced_key__filter (line 60) | def test_hash_with_replace___key____replaced_key__filter method test_hash_with_append____appended_text__filter (line 64) | def test_hash_with_append____appended_text__filter method test_hash_with_prepend___prepended_text___filter (line 68) | def test_hash_with_prepend___prepended_text___filter method test_render_hash_with_array_values_empty (line 72) | def test_render_hash_with_array_values_empty method test_render_hash_with_array_values_hash (line 76) | def test_render_hash_with_array_values_hash method test_join_filter_with_hash (line 80) | def test_join_filter_with_hash method test_render_hash_with_hash_key (line 86) | def test_render_hash_with_hash_key method test_rendering_hash_with_custom_to_s_method_uses_custom_to_s (line 90) | def test_rendering_hash_with_custom_to_s_method_uses_custom_to_s method test_rendering_hash_without_custom_to_s_uses_default_inspect (line 94) | def test_rendering_hash_without_custom_to_s_uses_default_inspect FILE: test/integration/output_test.rb type FunnyFilter (line 5) | module FunnyFilter function make_funny (line 6) | def make_funny(_input) function cite_funny (line 10) | def cite_funny(input) function add_smiley (line 14) | def add_smiley(input, smiley = ":-)") function add_tag (line 18) | def add_tag(input, tag = "p", id = "foo") function paragraph (line 22) | def paragraph(input) function link_to (line 26) | def link_to(name, url) class OutputTest (line 31) | class OutputTest < Minitest::Test method setup (line 34) | def setup method test_variable (line 40) | def test_variable method test_variable_traversing_with_two_brackets (line 44) | def test_variable_traversing_with_two_brackets method test_variable_traversing (line 52) | def test_variable_traversing method test_variable_piping (line 57) | def test_variable_piping method test_variable_piping_with_input (line 64) | def test_variable_piping_with_input method test_variable_piping_with_args (line 71) | def test_variable_piping_with_args method test_variable_piping_with_no_args (line 78) | def test_variable_piping_with_no_args method test_multiple_variable_piping_with_args (line 85) | def test_multiple_variable_piping_with_args method test_variable_piping_with_multiple_args (line 92) | def test_variable_piping_with_multiple_args method test_variable_piping_with_variable_args (line 99) | def test_variable_piping_with_variable_args method test_multiple_pipings (line 106) | def test_multiple_pipings method test_link_to (line 114) | def test_link_to FILE: test/integration/parsing_quirks_test.rb class ParsingQuirksTest (line 5) | class ParsingQuirksTest < Minitest::Test method test_parsing_css (line 8) | def test_parsing_css method test_raise_on_single_close_bracet (line 13) | def test_raise_on_single_close_bracet method test_raise_on_label_and_no_close_bracets (line 19) | def test_raise_on_label_and_no_close_bracets method test_raise_on_label_and_no_close_bracets_percent (line 25) | def test_raise_on_label_and_no_close_bracets_percent method test_error_on_empty_filter (line 31) | def test_error_on_empty_filter method test_meaningless_parens_error (line 44) | def test_meaningless_parens_error method test_unexpected_characters_syntax_error (line 53) | def test_unexpected_characters_syntax_error method test_no_error_on_lax_empty_filter (line 66) | def test_no_error_on_lax_empty_filter method test_meaningless_parens_lax (line 72) | def test_meaningless_parens_lax method test_unexpected_characters_silently_eat_logic_lax (line 80) | def test_unexpected_characters_silently_eat_logic_lax method test_raise_on_invalid_tag_delimiter (line 89) | def test_raise_on_invalid_tag_delimiter method test_unanchored_filter_arguments (line 95) | def test_unanchored_filter_arguments method test_invalid_variables_work (line 108) | def test_invalid_variables_work method test_extra_dots_in_ranges (line 115) | def test_extra_dots_in_ranges method test_blank_variable_markup (line 121) | def test_blank_variable_markup method test_lookup_on_var_with_literal_name (line 125) | def test_lookup_on_var_with_literal_name method test_contains_in_id (line 131) | def test_contains_in_id method test_incomplete_expression (line 135) | def test_incomplete_expression FILE: test/integration/profiler_test.rb class ProfilerTest (line 5) | class ProfilerTest < Minitest::Test class TestDrop (line 6) | class TestDrop < Liquid::Drop method initialize (line 7) | def initialize(value) method to_s (line 12) | def to_s method artificial_execution_time (line 22) | def artificial_execution_time class ProfilingFileSystem (line 29) | class ProfilingFileSystem method read_template_file (line 30) | def read_template_file(template_path) method setup (line 35) | def setup method test_template_allows_flagging_profiling (line 39) | def test_template_allows_flagging_profiling method test_parse_makes_available_simple_profiling (line 46) | def test_parse_makes_available_simple_profiling method test_render_ignores_raw_strings_when_profiling (line 56) | def test_render_ignores_raw_strings_when_profiling method test_profiling_includes_line_numbers_of_liquid_nodes (line 63) | def test_profiling_includes_line_numbers_of_liquid_nodes method test_profiling_includes_line_numbers_of_included_partials (line 74) | def test_profiling_includes_line_numbers_of_included_partials method test_profiling_render_tag (line 86) | def test_profiling_render_tag method test_profiling_times_the_rendering_of_tokens (line 97) | def test_profiling_times_the_rendering_of_tokens method test_profiling_times_the_entire_render (line 105) | def test_profiling_times_the_entire_render class SleepTag (line 112) | class SleepTag < Liquid::Tag method initialize (line 113) | def initialize(tag_name, markup, parse_context) method render_to_output_buffer (line 118) | def render_to_output_buffer(_context, _output) method test_profiling_multiple_renders (line 123) | def test_profiling_multiple_renders method test_profiling_uses_include_to_mark_children (line 143) | def test_profiling_uses_include_to_mark_children method test_profiling_marks_children_with_the_name_of_included_partial (line 151) | def test_profiling_marks_children_with_the_name_of_included_partial method test_profiling_supports_multiple_templates (line 161) | def test_profiling_supports_multiple_templates method test_profiling_supports_rendering_the_same_partial_multiple_times (line 176) | def test_profiling_supports_rendering_the_same_partial_multiple_times method test_can_iterate_over_each_profiling_entry (line 191) | def test_can_iterate_over_each_profiling_entry method test_profiling_marks_children_of_if_blocks (line 203) | def test_profiling_marks_children_of_if_blocks method test_profiling_marks_children_of_for_blocks (line 211) | def test_profiling_marks_children_of_for_blocks method test_profiling_supports_self_time (line 220) | def test_profiling_supports_self_time method test_profiling_supports_total_time (line 233) | def test_profiling_supports_total_time FILE: test/integration/security_test.rb type SecurityFilter (line 5) | module SecurityFilter function add_one (line 6) | def add_one(input) class SecurityTest (line 11) | class SecurityTest < Minitest::Test method setup (line 14) | def setup method test_no_instance_eval (line 18) | def test_no_instance_eval method test_no_existing_instance_eval (line 25) | def test_no_existing_instance_eval method test_no_instance_eval_after_mixing_in_new_filter (line 32) | def test_no_instance_eval_after_mixing_in_new_filter method test_no_instance_eval_later_in_chain (line 39) | def test_no_instance_eval_later_in_chain method test_does_not_permanently_add_filters_to_symbol_table (line 46) | def test_does_not_permanently_add_filters_to_symbol_table method test_does_not_add_drop_methods_to_symbol_table (line 65) | def test_does_not_add_drop_methods_to_symbol_table method test_max_depth_nested_blocks_does_not_raise_exception (line 76) | def test_max_depth_nested_blocks_does_not_raise_exception method test_more_than_max_depth_nested_blocks_raises_exception (line 82) | def test_more_than_max_depth_nested_blocks_raises_exception FILE: test/integration/standard_filter_test.rb class TestThing (line 6) | class TestThing method initialize (line 9) | def initialize method to_s (line 13) | def to_s method [] (line 17) | def [](_whatever) method to_liquid (line 21) | def to_liquid class TestDrop (line 27) | class TestDrop < Liquid::Drop method initialize (line 28) | def initialize(value:) method registers (line 34) | def registers class TestModel (line 39) | class TestModel method initialize (line 40) | def initialize(value:) method to_liquid (line 44) | def to_liquid class TestEnumerable (line 49) | class TestEnumerable < Liquid::Drop method each (line 52) | def each(&block) class NumberLikeThing (line 57) | class NumberLikeThing < Liquid::Drop method initialize (line 58) | def initialize(amount) method to_number (line 62) | def to_number class StandardFiltersTest (line 67) | class StandardFiltersTest < Minitest::Test method setup (line 73) | def setup method test_size (line 77) | def test_size method test_downcase (line 83) | def test_downcase method test_upcase (line 88) | def test_upcase method test_slice (line 93) | def test_slice method test_slice_on_arrays (line 118) | def test_slice_on_arrays method test_find_on_empty_array (line 136) | def test_find_on_empty_array method test_find_index_on_empty_array (line 140) | def test_find_index_on_empty_array method test_has_on_empty_array (line 144) | def test_has_on_empty_array method test_truncate (line 148) | def test_truncate method test_split (line 159) | def test_split method test_squish_filter (line 167) | def test_squish_filter method test_escape (line 174) | def test_escape method test_h (line 181) | def test_h method test_escape_once (line 188) | def test_escape_once method test_base64_encode (line 192) | def test_base64_encode method test_base64_decode (line 197) | def test_base64_decode method test_base64_url_safe_encode (line 217) | def test_base64_url_safe_encode method test_base64_url_safe_decode (line 225) | def test_base64_url_safe_decode method test_url_encode (line 247) | def test_url_encode method test_url_decode (line 254) | def test_url_decode method test_truncatewords (line 267) | def test_truncatewords method test_strip_html (line 284) | def test_strip_html method test_join (line 297) | def test_join method test_join_calls_to_liquid_on_each_element (line 303) | def test_join_calls_to_liquid_on_each_element method test_sort (line 307) | def test_sort method test_sort_with_nils (line 312) | def test_sort_with_nils method test_sort_when_property_is_sometimes_missing_puts_nils_last (line 317) | def test_sort_when_property_is_sometimes_missing_puts_nils_last method test_sort_natural (line 335) | def test_sort_natural method test_sort_natural_with_nils (line 340) | def test_sort_natural_with_nils method test_sort_natural_when_property_is_sometimes_missing_puts_nils_last (line 345) | def test_sort_natural_when_property_is_sometimes_missing_puts_nils_last method test_sort_natural_case_check (line 363) | def test_sort_natural_case_check method test_sort_empty_array (line 386) | def test_sort_empty_array method test_sort_invalid_property (line 390) | def test_sort_invalid_property method test_sort_natural_empty_array (line 402) | def test_sort_natural_empty_array method test_sort_natural_invalid_property (line 406) | def test_sort_natural_invalid_property method test_legacy_sort_hash (line 418) | def test_legacy_sort_hash method test_numerical_vs_lexicographical_sort (line 422) | def test_numerical_vs_lexicographical_sort method test_uniq (line 429) | def test_uniq method test_uniq_empty_array (line 438) | def test_uniq_empty_array method test_uniq_invalid_property (line 442) | def test_uniq_invalid_property method test_compact_empty_array (line 454) | def test_compact_empty_array method test_compact_invalid_property (line 458) | def test_compact_invalid_property method test_reverse (line 470) | def test_reverse method test_legacy_reverse_hash (line 474) | def test_legacy_reverse_hash method test_map (line 478) | def test_map method test_map_doesnt_call_arbitrary_stuff (line 487) | def test_map_doesnt_call_arbitrary_stuff method test_map_calls_to_liquid (line 492) | def test_map_calls_to_liquid method test_map_calls_context= (line 497) | def test_map_calls_context= method test_map_on_hashes (line 507) | def test_map_on_hashes method test_legacy_map_on_hashes_with_dynamic_key (line 515) | def test_legacy_map_on_hashes_with_dynamic_key method test_sort_calls_to_liquid (line 521) | def test_sort_calls_to_liquid method test_map_over_proc (line 527) | def test_map_over_proc method test_map_over_drops_returning_procs (line 534) | def test_map_over_drops_returning_procs method test_map_works_on_enumerables (line 547) | def test_map_works_on_enumerables method test_map_returns_empty_on_2d_input_array (line 552) | def test_map_returns_empty_on_2d_input_array method test_map_with_value_property (line 564) | def test_map_with_value_property method test_map_returns_input_with_no_property (line 574) | def test_map_returns_input_with_no_property method test_sort_works_on_enumerables (line 586) | def test_sort_works_on_enumerables method test_first_and_last_call_to_liquid (line 590) | def test_first_and_last_call_to_liquid method test_truncate_calls_to_liquid (line 595) | def test_truncate_calls_to_liquid method test_date (line 599) | def test_date method test_first_last (line 630) | def test_first_last method test_first_last_on_strings (line 637) | def test_first_last_on_strings method test_first_last_on_unicode_strings (line 653) | def test_first_last_on_unicode_strings method test_first_last_on_strings_via_template (line 662) | def test_first_last_on_strings_via_template method test_replace (line 671) | def test_replace method test_remove (line 688) | def test_remove method test_pipes_in_string_arguments (line 699) | def test_pipes_in_string_arguments method test_strip (line 703) | def test_strip method test_lstrip (line 708) | def test_lstrip method test_rstrip (line 713) | def test_rstrip method test_strip_newlines (line 718) | def test_strip_newlines method test_newlines_to_br (line 723) | def test_newlines_to_br method test_plus (line 728) | def test_plus method test_minus (line 735) | def test_minus method test_abs (line 742) | def test_abs method test_times (line 755) | def test_times method test_divided_by (line 765) | def test_divided_by method test_modulo (line 780) | def test_modulo method test_round (line 789) | def test_round method test_ceil (line 801) | def test_ceil method test_floor (line 811) | def test_floor method test_at_most (line 821) | def test_at_most method test_at_least (line 832) | def test_at_least method test_append (line 843) | def test_append method test_concat (line 849) | def test_concat method test_prepend (line 859) | def test_prepend method test_default (line 865) | def test_default method test_default_handle_false (line 877) | def test_default_handle_false method test_cannot_access_private_methods (line 889) | def test_cannot_access_private_methods method test_date_raises_nothing (line 893) | def test_date_raises_nothing method test_reject (line 898) | def test_reject method test_reject_with_value (line 912) | def test_reject_with_value method test_reject_with_false_value (line 926) | def test_reject_with_false_value method test_has (line 940) | def test_has method test_has_when_does_not_have_it (line 954) | def test_has_when_does_not_have_it method test_has_with_empty_arrays (line 968) | def test_has_with_empty_arrays method test_has_with_false_value (line 980) | def test_has_with_false_value method test_has_with_false_value_when_does_not_have_it (line 994) | def test_has_with_false_value_when_does_not_have_it method test_find_with_value (line 1008) | def test_find_with_value method test_find_with_empty_arrays (line 1026) | def test_find_with_empty_arrays method test_find_index_with_value (line 1038) | def test_find_index_with_value method test_find_index_with_empty_arrays (line 1056) | def test_find_index_with_empty_arrays method test_where (line 1068) | def test_where method test_where_with_empty_string_is_a_no_op (line 1082) | def test_where_with_empty_string_is_a_no_op method test_where_with_nil_is_a_no_op (line 1090) | def test_where_with_nil_is_a_no_op method test_where_with_value (line 1099) | def test_where_with_value method test_where_with_false_value (line 1113) | def test_where_with_false_value method test_where_string_keys (line 1127) | def test_where_string_keys method test_where_no_key_set (line 1139) | def test_where_no_key_set method test_where_non_array_map_input (line 1156) | def test_where_non_array_map_input method test_where_indexable_but_non_map_value (line 1161) | def test_where_indexable_but_non_map_value method test_where_non_boolean_value (line 1166) | def test_where_non_boolean_value method test_where_array_of_only_unindexable_values (line 1178) | def test_where_array_of_only_unindexable_values method test_all_filters_never_raise_non_liquid_exception (line 1183) | def test_all_filters_never_raise_non_liquid_exception method test_where_no_target_value (line 1221) | def test_where_no_target_value method test_sum_with_all_numbers (line 1232) | def test_sum_with_all_numbers method test_sum_with_numeric_strings (line 1241) | def test_sum_with_numeric_strings method test_sum_with_nested_arrays (line 1250) | def test_sum_with_nested_arrays method test_sum_with_indexable_map_values (line 1259) | def test_sum_with_indexable_map_values method test_sum_with_indexable_non_map_values (line 1268) | def test_sum_with_indexable_non_map_values method test_sum_with_unindexable_values (line 1277) | def test_sum_with_unindexable_values method test_sum_without_property_calls_to_liquid (line 1286) | def test_sum_without_property_calls_to_liquid method test_sum_with_property_calls_to_liquid_on_property_values (line 1292) | def test_sum_with_property_calls_to_liquid_on_property_values method test_sum_of_floats (line 1298) | def test_sum_of_floats method test_sum_of_negative_floats (line 1304) | def test_sum_of_negative_floats method test_sum_with_float_strings (line 1310) | def test_sum_with_float_strings method test_sum_resulting_in_negative_float (line 1316) | def test_sum_resulting_in_negative_float method test_sum_with_floats_and_indexable_map_values (line 1322) | def test_sum_with_floats_and_indexable_map_values method test_sum_with_non_string_property (line 1334) | def test_sum_with_non_string_property method test_uniq_with_to_liquid_value (line 1345) | def test_uniq_with_to_liquid_value method test_uniq_with_to_liquid_value_pick_correct_classes (line 1353) | def test_uniq_with_to_liquid_value_pick_correct_classes method with_timezone (line 1363) | def with_timezone(tz) FILE: test/integration/tag/disableable_test.rb class TagDisableableTest (line 5) | class TagDisableableTest < Minitest::Test type RenderTagName (line 8) | module RenderTagName function render (line 9) | def render(_context) class Custom (line 14) | class Custom < Tag class Custom2 (line 19) | class Custom2 < Tag class DisableCustom (line 24) | class DisableCustom < Block class DisableBoth (line 28) | class DisableBoth < Block method test_block_tag_disabling_nested_tag (line 32) | def test_block_tag_disabling_nested_tag method test_block_tag_disabling_multiple_nested_tags (line 41) | def test_block_tag_disabling_multiple_nested_tags method with_disableable_tags (line 52) | def with_disableable_tags FILE: test/integration/tag_test.rb class TagTest (line 5) | class TagTest < Minitest::Test method test_custom_tags_have_a_default_render_to_output_buffer_method_for_backwards_compatibility (line 8) | def test_custom_tags_have_a_default_render_to_output_buffer_method_for... FILE: test/integration/tags/break_tag_test.rb class BreakTagTest (line 5) | class BreakTagTest < Minitest::Test method test_break_with_no_block (line 10) | def test_break_with_no_block FILE: test/integration/tags/continue_tag_test.rb class ContinueTagTest (line 5) | class ContinueTagTest < Minitest::Test method test_continue_with_no_block (line 10) | def test_continue_with_no_block FILE: test/integration/tags/cycle_tag_test.rb class CycleTagTest (line 5) | class CycleTagTest < Minitest::Test method test_simple_cycle_inside_for_loop (line 6) | def test_simple_cycle_inside_for_loop method test_cycle_with_variables_inside_for_loop (line 16) | def test_cycle_with_variables_inside_for_loop method test_cycle_named_groups_string (line 29) | def test_cycle_named_groups_string method test_cycle_named_groups_vlookup (line 40) | def test_cycle_named_groups_vlookup method test_unnamed_cycle_have_independent_counters_when_used_with_lookups (line 53) | def test_unnamed_cycle_have_independent_counters_when_used_with_lookups method test_unnamed_cycle_dependent_counter_when_used_with_literal_values (line 65) | def test_unnamed_cycle_dependent_counter_when_used_with_literal_values method test_optional_trailing_comma (line 75) | def test_optional_trailing_comma method test_cycle_tag_without_arguments (line 86) | def test_cycle_tag_without_arguments method test_cycle_tag_with_error_mode (line 94) | def test_cycle_tag_with_error_mode method test_cycle_with_trailing_elements (line 115) | def test_cycle_with_trailing_elements method test_cycle_name_with_invalid_expression (line 149) | def test_cycle_name_with_invalid_expression method test_cycle_variable_with_invalid_expression (line 166) | def test_cycle_variable_with_invalid_expression FILE: test/integration/tags/echo_test.rb class EchoTest (line 5) | class EchoTest < Minitest::Test method test_echo_outputs_its_input (line 8) | def test_echo_outputs_its_input FILE: test/integration/tags/for_tag_test.rb class ThingWithValue (line 5) | class ThingWithValue < Liquid::Drop method value (line 6) | def value class ForTagTest (line 11) | class ForTagTest < Minitest::Test method test_for (line 14) | def test_for method test_for_reversed (line 36) | def test_for_reversed method test_for_with_range (line 41) | def test_for_with_range method test_for_with_variable_range (line 51) | def test_for_with_variable_range method test_for_with_hash_value_range (line 55) | def test_for_with_hash_value_range method test_for_with_drop_value_range (line 60) | def test_for_with_drop_value_range method test_for_with_variable (line 65) | def test_for_with_variable method test_for_helpers (line 74) | def test_for_helpers method test_for_and_if (line 89) | def test_for_and_if method test_for_else (line 98) | def test_for_else method test_limiting (line 104) | def test_limiting method test_limiting_with_invalid_limit (line 113) | def test_limiting_with_invalid_limit method test_limiting_with_invalid_offset (line 127) | def test_limiting_with_invalid_offset method test_dynamic_variable_limiting (line 141) | def test_dynamic_variable_limiting method test_nested_for (line 149) | def test_nested_for method test_offset_only (line 154) | def test_offset_only method test_pause_resume (line 159) | def test_pause_resume method test_pause_resume_limit (line 178) | def test_pause_resume_limit method test_pause_resume_big_limit (line 197) | def test_pause_resume_big_limit method test_pause_resume_big_offset (line 216) | def test_pause_resume_big_offset method test_for_with_break (line 231) | def test_for_with_break method test_for_with_break_after_nested_loop (line 271) | def test_for_with_break_after_nested_loop method test_for_with_continue (line 284) | def test_for_with_continue method test_for_tag_string (line 327) | def test_for_tag_string method test_for_parentloop_references_parent_loop (line 360) | def test_for_parentloop_references_parent_loop method test_for_parentloop_nil_when_not_present (line 370) | def test_for_parentloop_nil_when_not_present method test_inner_for_over_empty_input (line 380) | def test_inner_for_over_empty_input method test_blank_string_not_iterable (line 384) | def test_blank_string_not_iterable method test_bad_variable_naming_in_for_loop (line 388) | def test_bad_variable_naming_in_for_loop method test_spacing_with_variable_naming_in_for_loop (line 394) | def test_spacing_with_variable_naming_in_for_loop class LoaderDrop (line 401) | class LoaderDrop < Liquid::Drop method initialize (line 404) | def initialize(data) method each (line 408) | def each method load_slice (line 413) | def load_slice(from, to) method test_iterate_with_each_when_no_limit_applied (line 419) | def test_iterate_with_each_when_no_limit_applied method test_iterate_with_load_slice_when_limit_applied (line 429) | def test_iterate_with_load_slice_when_limit_applied method test_iterate_with_load_slice_when_limit_and_offset_applied (line 439) | def test_iterate_with_load_slice_when_limit_and_offset_applied method test_iterate_with_load_slice_returns_same_results_as_without (line 449) | def test_iterate_with_load_slice_returns_same_results_as_without method test_for_cleans_up_registers (line 459) | def test_for_cleans_up_registers FILE: test/integration/tags/if_else_tag_test.rb class IfElseTagTest (line 5) | class IfElseTagTest < Minitest::Test method test_if (line 8) | def test_if method test_literal_comparisons (line 17) | def test_literal_comparisons method test_if_else (line 22) | def test_if_else method test_if_boolean (line 28) | def test_if_boolean method test_if_or (line 32) | def test_if_or method test_if_or_with_operators (line 42) | def test_if_or_with_operators method test_comparison_of_strings_containing_and_or_or (line 48) | def test_comparison_of_strings_containing_and_or_or method test_comparison_of_expressions_starting_with_and_or_or (line 54) | def test_comparison_of_expressions_starting_with_and_or_or method test_if_and (line 68) | def test_if_and method test_hash_miss_generates_false (line 74) | def test_hash_miss_generates_false method test_if_from_variable (line 78) | def test_if_from_variable method test_nested_if (line 111) | def test_nested_if method test_comparisons_on_null (line 122) | def test_comparisons_on_null method test_else_if (line 134) | def test_else_if method test_syntax_error_no_variable (line 142) | def test_syntax_error_no_variable method test_syntax_error_no_expression (line 146) | def test_syntax_error_no_expression method test_if_with_custom_condition (line 150) | def test_if_with_custom_condition method test_operators_are_ignored_unless_isolated (line 160) | def test_operators_are_ignored_unless_isolated method test_operators_are_whitelisted (line 172) | def test_operators_are_whitelisted method test_multiple_conditions (line 178) | def test_multiple_conditions FILE: test/integration/tags/include_tag_test.rb class TestFileSystem (line 5) | class TestFileSystem method read_template_file (line 11) | def read_template_file(template_path) class OtherFileSystem (line 16) | class OtherFileSystem method read_template_file (line 17) | def read_template_file(_template_path) class CountingFileSystem (line 22) | class CountingFileSystem method read_template_file (line 24) | def read_template_file(_template_path) class CustomInclude (line 31) | class CustomInclude < Liquid::Tag method initialize (line 34) | def initialize(tag_name, markup, tokens) method parse (line 40) | def parse(tokens) method render_to_output_buffer (line 43) | def render_to_output_buffer(_context, output) class IncludeTagTest (line 49) | class IncludeTagTest < Minitest::Test method test_include_tag_looks_for_file_system_in_registers_first (line 52) | def test_include_tag_looks_for_file_system_in_registers_first method test_include_tag_with (line 59) | def test_include_tag_with method test_include_tag_with_alias (line 68) | def test_include_tag_with_alias method test_include_tag_for_alias (line 77) | def test_include_tag_for_alias method test_include_tag_with_default_name (line 86) | def test_include_tag_with_default_name method test_include_tag_for (line 95) | def test_include_tag_for method test_include_tag_with_local_variables (line 104) | def test_include_tag_with_local_variables method test_include_tag_with_multiple_local_variables (line 112) | def test_include_tag_with_multiple_local_variables method test_include_tag_with_multiple_local_variables_from_context (line 120) | def test_include_tag_with_multiple_local_variables_from_context method test_included_templates_assigns_variables (line 129) | def test_included_templates_assigns_variables method test_nested_include_tag (line 137) | def test_nested_include_tag method test_nested_include_with_variable (line 149) | def test_nested_include_with_variable method test_recursively_included_template_does_not_produce_endless_loop (line 170) | def test_recursively_included_template_does_not_produce_endless_loop method test_dynamically_choosen_template (line 184) | def test_dynamically_choosen_template method test_strict2_parsing_errors (line 207) | def test_strict2_parsing_errors method test_optional_commas (line 226) | def test_optional_commas method test_include_tag_caches_second_read_of_same_partial (line 233) | def test_include_tag_caches_second_read_of_same_partial method test_include_tag_doesnt_cache_partials_across_renders (line 243) | def test_include_tag_doesnt_cache_partials_across_renders method test_include_tag_within_if_statement (line 258) | def test_include_tag_within_if_statement method test_custom_include_tag (line 266) | def test_custom_include_tag method test_custom_include_tag_within_if_statement (line 279) | def test_custom_include_tag_within_if_statement method test_does_not_add_error_in_strict_mode_for_missing_variable (line 292) | def test_does_not_add_error_in_strict_mode_for_missing_variable method test_passing_options_to_included_templates (line 300) | def test_passing_options_to_included_templates method test_render_raise_argument_error_when_template_is_undefined (line 317) | def test_render_raise_argument_error_when_template_is_undefined method test_render_raise_argument_error_when_template_is_not_a_string (line 331) | def test_render_raise_argument_error_when_template_is_not_a_string method test_including_via_variable_value (line 339) | def test_including_via_variable_value method test_including_with_strict_variables (line 363) | def test_including_with_strict_variables method test_break_through_include (line 374) | def test_break_through_include method test_render_tag_renders_error_with_template_name (line 383) | def test_render_tag_renders_error_with_template_name method test_render_tag_renders_error_with_template_name_from_template_factory (line 393) | def test_render_tag_renders_error_with_template_name_from_template_fac... method test_include_template_with_invalid_expression (line 404) | def test_include_template_with_invalid_expression method test_include_with_invalid_expression (line 417) | def test_include_with_invalid_expression method test_include_attribute_with_invalid_expression (line 430) | def test_include_attribute_with_invalid_expression FILE: test/integration/tags/increment_tag_test.rb class IncrementTagTest (line 5) | class IncrementTagTest < Minitest::Test method test_inc (line 8) | def test_inc method test_dec (line 19) | def test_dec FILE: test/integration/tags/inline_comment_test.rb class InlineCommentTest (line 5) | class InlineCommentTest < Minitest::Test method test_inline_comment_returns_nothing (line 8) | def test_inline_comment_returns_nothing method test_inline_comment_does_not_require_a_space_after_the_pound_sign (line 15) | def test_inline_comment_does_not_require_a_space_after_the_pound_sign method test_liquid_inline_comment_returns_nothing (line 19) | def test_liquid_inline_comment_returns_nothing method test_inline_comment_can_be_written_on_multiple_lines (line 35) | def test_inline_comment_can_be_written_on_multiple_lines method test_inline_comment_multiple_pound_signs (line 47) | def test_inline_comment_multiple_pound_signs method test_inline_comments_require_the_pound_sign_on_every_new_line (line 57) | def test_inline_comments_require_the_pound_sign_on_every_new_line method test_inline_comment_does_not_support_nested_tags (line 66) | def test_inline_comment_does_not_support_nested_tags FILE: test/integration/tags/liquid_tag_test.rb class LiquidTagTest (line 5) | class LiquidTagTest < Minitest::Test method test_liquid_tag (line 8) | def test_liquid_tag method test_liquid_tag_errors (line 48) | def test_liquid_tag_errors method test_line_number_is_correct_after_a_blank_token (line 79) | def test_line_number_is_correct_after_a_blank_token method test_nested_liquid_tag (line 84) | def test_nested_liquid_tag method test_cannot_open_blocks_living_past_a_liquid_tag (line 94) | def test_cannot_open_blocks_living_past_a_liquid_tag method test_cannot_close_blocks_created_before_a_liquid_tag (line 103) | def test_cannot_close_blocks_created_before_a_liquid_tag method test_liquid_tag_in_raw (line 111) | def test_liquid_tag_in_raw method test_nested_liquid_tags (line 117) | def test_nested_liquid_tags method test_nested_liquid_tags_on_same_line (line 128) | def test_nested_liquid_tags_on_same_line method test_nested_liquid_liquid_is_not_skipped_if_used_in_non_tag_position (line 134) | def test_nested_liquid_liquid_is_not_skipped_if_used_in_non_tag_position method test_next_liquid_with_unclosed_if_tag (line 140) | def test_next_liquid_with_unclosed_if_tag FILE: test/integration/tags/raw_tag_test.rb class RawTagTest (line 5) | class RawTagTest < Minitest::Test method test_tag_in_raw (line 8) | def test_tag_in_raw method test_output_in_raw (line 15) | def test_output_in_raw method test_open_tag_in_raw (line 22) | def test_open_tag_in_raw method test_invalid_raw (line 34) | def test_invalid_raw FILE: test/integration/tags/render_tag_test.rb class RenderTagTest (line 5) | class RenderTagTest < Minitest::Test method test_render_with_no_arguments (line 8) | def test_render_with_no_arguments method test_render_tag_looks_for_file_system_in_registers_first (line 16) | def test_render_tag_looks_for_file_system_in_registers_first method test_render_passes_named_arguments_into_inner_scope (line 24) | def test_render_passes_named_arguments_into_inner_scope method test_render_accepts_literals_as_arguments (line 33) | def test_render_accepts_literals_as_arguments method test_render_accepts_multiple_named_arguments (line 41) | def test_render_accepts_multiple_named_arguments method test_render_does_not_inherit_parent_scope_variables (line 49) | def test_render_does_not_inherit_parent_scope_variables method test_render_does_not_inherit_variable_with_same_name_as_snippet (line 57) | def test_render_does_not_inherit_variable_with_same_name_as_snippet method test_render_does_not_mutate_parent_scope (line 65) | def test_render_does_not_mutate_parent_scope method test_nested_render_tag (line 73) | def test_nested_render_tag method test_recursively_rendered_template_does_not_produce_endless_loop (line 84) | def test_recursively_rendered_template_does_not_produce_endless_loop method test_sub_contexts_count_towards_the_same_recursion_limit (line 94) | def test_sub_contexts_count_towards_the_same_recursion_limit method test_dynamically_choosen_templates_are_not_allowed (line 104) | def test_dynamically_choosen_templates_are_not_allowed method test_strict2_parsing_errors (line 108) | def test_strict2_parsing_errors method test_optional_commas (line 127) | def test_optional_commas method test_render_tag_caches_second_read_of_same_partial (line 134) | def test_render_tag_caches_second_read_of_same_partial method test_render_tag_doesnt_cache_partials_across_renders (line 144) | def test_render_tag_doesnt_cache_partials_across_renders method test_render_tag_within_if_statement (line 160) | def test_render_tag_within_if_statement method test_break_through_render (line 168) | def test_break_through_render method test_increment_is_isolated_between_renders (line 174) | def test_increment_is_isolated_between_renders method test_decrement_is_isolated_between_renders (line 182) | def test_decrement_is_isolated_between_renders method test_includes_will_not_render_inside_render_tag (line 190) | def test_includes_will_not_render_inside_render_tag method test_includes_will_not_render_inside_nested_sibling_tags (line 202) | def test_includes_will_not_render_inside_nested_sibling_tags method test_render_tag_with (line 216) | def test_render_tag_with method test_render_tag_with_alias (line 228) | def test_render_tag_with_alias method test_render_tag_for_alias (line 240) | def test_render_tag_for_alias method test_render_tag_for (line 252) | def test_render_tag_for method test_render_tag_forloop (line 264) | def test_render_tag_forloop method test_render_tag_for_drop (line 275) | def test_render_tag_for_drop method test_render_tag_with_drop (line 286) | def test_render_tag_with_drop method test_render_tag_renders_error_with_template_name (line 297) | def test_render_tag_renders_error_with_template_name method test_render_tag_renders_error_with_template_name_from_template_factory (line 307) | def test_render_tag_renders_error_with_template_name_from_template_fac... method test_render_with_invalid_expression (line 318) | def test_render_with_invalid_expression method test_render_attribute_with_invalid_expression (line 331) | def test_render_attribute_with_invalid_expression FILE: test/integration/tags/standard_tag_test.rb class StandardTagTest (line 5) | class StandardTagTest < Minitest::Test method test_no_transform (line 8) | def test_no_transform method test_has_a_block_which_does_nothing (line 24) | def test_has_a_block_which_does_nothing method test_hyphenated_assign (line 59) | def test_hyphenated_assign method test_assign_with_colon_and_spaces (line 64) | def test_assign_with_colon_and_spaces method test_capture (line 69) | def test_capture method test_capture_detects_bad_syntax (line 78) | def test_capture_detects_bad_syntax method test_case (line 88) | def test_case method test_case_with_else (line 125) | def test_case_with_else method test_case_on_size (line 148) | def test_case_on_size method test_case_on_size_with_else (line 157) | def test_case_on_size_with_else method test_case_on_length_with_else (line 195) | def test_case_on_length_with_else method test_assign_from_case (line 221) | def test_assign_from_case method test_case_when_or (line 231) | def test_case_when_or method test_case_when_comma (line 246) | def test_case_when_comma method test_case_when_comma_and_blank_body (line 261) | def test_case_when_comma_and_blank_body method test_assign (line 266) | def test_assign method test_assign_unassigned (line 270) | def test_assign_unassigned method test_assign_an_empty_string (line 275) | def test_assign_an_empty_string method test_assign_is_global (line 279) | def test_assign_is_global method test_case_detects_bad_syntax (line 283) | def test_case_detects_bad_syntax method test_cycle (line 293) | def test_cycle method test_multiple_cycles (line 306) | def test_multiple_cycles method test_multiple_named_cycles (line 313) | def test_multiple_named_cycles method test_multiple_named_cycles_with_names_from_context (line 320) | def test_multiple_named_cycles_with_names_from_context method test_size_of_array (line 329) | def test_size_of_array method test_size_of_hash (line 334) | def test_size_of_hash method test_illegal_symbols (line 339) | def test_illegal_symbols method test_ifchanged (line 346) | def test_ifchanged method test_multiline_tag (line 354) | def test_multiline_tag FILE: test/integration/tags/statements_test.rb class StatementsTest (line 5) | class StatementsTest < Minitest::Test method test_true_eql_true (line 8) | def test_true_eql_true method test_true_not_eql_true (line 13) | def test_true_not_eql_true method test_true_lq_true (line 18) | def test_true_lq_true method test_one_lq_zero (line 23) | def test_one_lq_zero method test_zero_lq_one (line 28) | def test_zero_lq_one method test_zero_lq_or_equal_one (line 33) | def test_zero_lq_or_equal_one method test_zero_lq_or_equal_one_involving_nil (line 38) | def test_zero_lq_or_equal_one_involving_nil method test_zero_lqq_or_equal_one (line 46) | def test_zero_lqq_or_equal_one method test_strings (line 51) | def test_strings method test_strings_not_equal (line 56) | def test_strings_not_equal method test_var_strings_equal (line 61) | def test_var_strings_equal method test_var_strings_are_not_equal (line 66) | def test_var_strings_are_not_equal method test_var_and_long_string_are_equal (line 71) | def test_var_and_long_string_are_equal method test_var_and_long_string_are_equal_backwards (line 76) | def test_var_and_long_string_are_equal_backwards method test_is_collection_empty (line 88) | def test_is_collection_empty method test_is_not_collection_empty (line 93) | def test_is_not_collection_empty method test_nil (line 98) | def test_nil method test_not_nil (line 106) | def test_not_nil FILE: test/integration/tags/table_row_test.rb class TableRowTest (line 5) | class TableRowTest < Minitest::Test class ArrayDrop (line 8) | class ArrayDrop < Liquid::Drop method initialize (line 11) | def initialize(array) method each (line 15) | def each(&block) method test_table_row (line 20) | def test_table_row method test_table_row_with_different_cols (line 34) | def test_table_row_with_different_cols method test_table_col_counter (line 42) | def test_table_col_counter method test_quoted_fragment (line 50) | def test_quoted_fragment method test_enumerable_drop (line 63) | def test_enumerable_drop method test_offset_and_limit (line 71) | def test_offset_and_limit method test_blank_string_not_iterable (line 79) | def test_blank_string_not_iterable method test_cols_nil_constant_same_as_evaluated_nil_expression (line 87) | def test_cols_nil_constant_same_as_evaluated_nil_expression method test_nil_limit_is_treated_as_zero (line 105) | def test_nil_limit_is_treated_as_zero method test_nil_offset_is_treated_as_zero (line 121) | def test_nil_offset_is_treated_as_zero method test_tablerow_loop_drop_attributes (line 139) | def test_tablerow_loop_drop_attributes method test_table_row_renders_correct_error_message_for_invalid_parameters (line 191) | def test_table_row_renders_correct_error_message_for_invalid_parameters method test_table_row_handles_interrupts (line 214) | def test_table_row_handles_interrupts method test_table_row_does_not_leak_interrupts (line 226) | def test_table_row_does_not_leak_interrupts method test_tablerow_with_cols_attribute_in_strict2_mode (line 262) | def test_tablerow_with_cols_attribute_in_strict2_mode method test_tablerow_with_limit_attribute_in_strict2_mode (line 278) | def test_tablerow_with_limit_attribute_in_strict2_mode method test_tablerow_with_offset_attribute_in_strict2_mode (line 293) | def test_tablerow_with_offset_attribute_in_strict2_mode method test_tablerow_with_range_attribute_in_strict2_mode (line 308) | def test_tablerow_with_range_attribute_in_strict2_mode method test_tablerow_with_multiple_attributes_in_strict2_mode (line 323) | def test_tablerow_with_multiple_attributes_in_strict2_mode method test_tablerow_with_variable_collection_in_strict2_mode (line 339) | def test_tablerow_with_variable_collection_in_strict2_mode method test_tablerow_with_dotted_access_in_strict2_mode (line 355) | def test_tablerow_with_dotted_access_in_strict2_mode method test_tablerow_with_bracketed_access_in_strict2_mode (line 371) | def test_tablerow_with_bracketed_access_in_strict2_mode method test_tablerow_without_attributes_in_strict2_mode (line 386) | def test_tablerow_without_attributes_in_strict2_mode method test_tablerow_without_in_keyword_in_strict2_mode (line 401) | def test_tablerow_without_in_keyword_in_strict2_mode method test_tablerow_with_multiple_invalid_attributes_reports_first_in_strict2_mode (line 410) | def test_tablerow_with_multiple_invalid_attributes_reports_first_in_st... method test_tablerow_with_empty_collection_in_strict2_mode (line 419) | def test_tablerow_with_empty_collection_in_strict2_mode method test_tablerow_with_invalid_attribute_strict_vs_strict2 (line 434) | def test_tablerow_with_invalid_attribute_strict_vs_strict2 method test_tablerow_with_invalid_expression_strict_vs_strict2 (line 452) | def test_tablerow_with_invalid_expression_strict_vs_strict2 FILE: test/integration/tags/unless_else_tag_test.rb class UnlessElseTagTest (line 5) | class UnlessElseTagTest < Minitest::Test method test_unless (line 8) | def test_unless method test_unless_else (line 17) | def test_unless_else method test_unless_in_loop (line 23) | def test_unless_in_loop method test_unless_else_in_loop (line 27) | def test_unless_else_in_loop FILE: test/integration/template_test.rb class TemplateContextDrop (line 6) | class TemplateContextDrop < Liquid::Drop method liquid_method_missing (line 7) | def liquid_method_missing(method) method foo (line 11) | def foo method baz (line 15) | def baz class SomethingWithLength (line 20) | class SomethingWithLength < Liquid::Drop method length (line 21) | def length class ErroneousDrop (line 26) | class ErroneousDrop < Liquid::Drop method bad_method (line 27) | def bad_method class DropWithUndefinedMethod (line 32) | class DropWithUndefinedMethod < Liquid::Drop method foo (line 33) | def foo class TemplateTest (line 38) | class TemplateTest < Minitest::Test method test_instance_assigns_persist_on_same_template_object_between_parses (line 41) | def test_instance_assigns_persist_on_same_template_object_between_parses method test_warnings_is_not_exponential_time (line 47) | def test_warnings_is_not_exponential_time method test_instance_assigns_persist_on_same_template_parsing_between_renders (line 57) | def test_instance_assigns_persist_on_same_template_parsing_between_ren... method test_custom_assigns_do_not_persist_on_same_template (line 63) | def test_custom_assigns_do_not_persist_on_same_template method test_custom_assigns_squash_instance_assigns (line 69) | def test_custom_assigns_squash_instance_assigns method test_persistent_assigns_squash_instance_assigns (line 75) | def test_persistent_assigns_squash_instance_assigns method test_lambda_is_called_once_from_persistent_assigns_over_multiple_parses_and_renders (line 82) | def test_lambda_is_called_once_from_persistent_assigns_over_multiple_p... method test_lambda_is_called_once_from_custom_assigns_over_multiple_parses_and_renders (line 94) | def test_lambda_is_called_once_from_custom_assigns_over_multiple_parse... method test_resource_limits_works_with_custom_length_method (line 108) | def test_resource_limits_works_with_custom_length_method method test_resource_limits_render_length (line 114) | def test_resource_limits_render_length method test_resource_limits_render_score (line 124) | def test_resource_limits_render_score method test_resource_limits_aborts_rendering_after_first_error (line 140) | def test_resource_limits_aborts_rendering_after_first_error method test_resource_limits_hash_in_template_gets_updated_even_if_no_limits_are_set (line 147) | def test_resource_limits_hash_in_template_gets_updated_even_if_no_limi... method test_render_length_persists_between_blocks (line 154) | def test_render_length_persists_between_blocks method test_render_length_uses_number_of_bytes_not_characters (line 174) | def test_render_length_uses_number_of_bytes_not_characters method test_cumulative_render_score_limit_across_render_tags (line 182) | def test_cumulative_render_score_limit_across_render_tags method test_cumulative_render_score_limit_raises_on_render_bang (line 207) | def test_cumulative_render_score_limit_raises_on_render_bang method test_cumulative_assign_score_limit_across_include_tags (line 222) | def test_cumulative_assign_score_limit_across_include_tags method test_cumulative_render_score_tracks_across_partials_without_limit (line 246) | def test_cumulative_render_score_tracks_across_partials_without_limit method test_default_resource_limits_unaffected_by_render_with_context (line 262) | def test_default_resource_limits_unaffected_by_render_with_context method test_can_use_drop_as_context (line 270) | def test_can_use_drop_as_context method test_render_bang_force_rethrow_errors_on_passed_context (line 279) | def test_render_bang_force_rethrow_errors_on_passed_context method test_exception_renderer_that_returns_string (line 289) | def test_exception_renderer_that_returns_string method test_exception_renderer_that_raises (line 302) | def test_exception_renderer_that_raises method test_global_filter_option_on_render (line 313) | def test_global_filter_option_on_render method test_global_filter_option_when_native_filters_exist (line 320) | def test_global_filter_option_when_native_filters_exist method test_undefined_variables (line 327) | def test_undefined_variables method test_nil_value_does_not_raise (line 341) | def test_nil_value_does_not_raise method test_undefined_variables_raise (line 349) | def test_undefined_variables_raise method test_undefined_drop_methods (line 357) | def test_undefined_drop_methods method test_undefined_drop_methods_raise (line 367) | def test_undefined_drop_methods_raise method test_undefined_filters (line 376) | def test_undefined_filters method test_undefined_filters_raise (line 391) | def test_undefined_filters_raise method test_using_range_literal_works_as_expected (line 399) | def test_using_range_literal_works_as_expected method test_source_string_subclass (line 407) | def test_source_string_subclass method test_raises_error_with_invalid_utf8 (line 421) | def test_raises_error_with_invalid_utf8 method test_allows_non_string_values_as_source (line 433) | def test_allows_non_string_values_as_source FILE: test/integration/trim_mode_test.rb class TrimModeTest (line 5) | class TrimModeTest < Minitest::Test method test_standard_output (line 9) | def test_standard_output method test_variable_output_with_multiple_blank_lines (line 27) | def test_variable_output_with_multiple_blank_lines method test_tag_output_with_multiple_blank_lines (line 47) | def test_tag_output_with_multiple_blank_lines method test_standard_tags (line 70) | def test_standard_tags method test_no_trim_output (line 112) | def test_no_trim_output method test_no_trim_tags (line 119) | def test_no_trim_tags method test_single_line_outer_tag (line 129) | def test_single_line_outer_tag method test_single_line_inner_tag (line 139) | def test_single_line_inner_tag method test_single_line_post_tag (line 149) | def test_single_line_post_tag method test_single_line_pre_tag (line 159) | def test_single_line_pre_tag method test_pre_trim_output (line 169) | def test_pre_trim_output method test_pre_trim_tags (line 186) | def test_pre_trim_tags method test_post_trim_output (line 223) | def test_post_trim_output method test_post_trim_tags (line 240) | def test_post_trim_tags method test_pre_and_post_trim_tags (line 277) | def test_pre_and_post_trim_tags method test_post_and_pre_trim_tags (line 313) | def test_post_and_pre_trim_tags method test_trim_output (line 352) | def test_trim_output method test_trim_tags (line 368) | def test_trim_tags method test_whitespace_trim_output (line 402) | def test_whitespace_trim_output method test_whitespace_trim_tags (line 419) | def test_whitespace_trim_tags method test_complex_trim_output (line 453) | def test_complex_trim_output method test_complex_trim (line 483) | def test_complex_trim method test_right_trim_followed_by_tag (line 501) | def test_right_trim_followed_by_tag method test_raw_output (line 505) | def test_raw_output method test_pre_trim_blank_preceding_text (line 532) | def test_pre_trim_blank_preceding_text method test_bug_compatible_pre_trim (line 538) | def test_bug_compatible_pre_trim method test_trim_blank (line 555) | def test_trim_blank FILE: test/integration/variable_test.rb class VariableTest (line 6) | class VariableTest < Minitest::Test method test_simple_variable (line 9) | def test_simple_variable method test_variable_render_calls_to_liquid (line 14) | def test_variable_render_calls_to_liquid method test_variable_lookup_calls_to_liquid_value (line 18) | def test_variable_lookup_calls_to_liquid_value method test_if_tag_calls_to_liquid_value (line 26) | def test_if_tag_calls_to_liquid_value method test_unless_tag_calls_to_liquid_value (line 42) | def test_unless_tag_calls_to_liquid_value method test_case_tag_calls_to_liquid_value (line 47) | def test_case_tag_calls_to_liquid_value method test_simple_with_whitespaces (line 51) | def test_simple_with_whitespaces method test_expression_with_whitespace_in_square_brackets (line 56) | def test_expression_with_whitespace_in_square_brackets method test_ignore_unknown (line 61) | def test_ignore_unknown method test_using_blank_as_variable_name (line 65) | def test_using_blank_as_variable_name method test_using_empty_as_variable_name (line 69) | def test_using_empty_as_variable_name method test_hash_scoping (line 73) | def test_hash_scoping method test_false_renders_as_false (line 78) | def test_false_renders_as_false method test_nil_renders_as_empty_string (line 83) | def test_nil_renders_as_empty_string method test_preset_assigns (line 88) | def test_preset_assigns method test_reuse_parsed_template (line 94) | def test_reuse_parsed_template method test_assigns_not_polluted_from_template (line 104) | def test_assigns_not_polluted_from_template method test_hash_with_default_proc (line 113) | def test_hash_with_default_proc method test_multiline_variable (line 125) | def test_multiline_variable method test_render_symbol (line 129) | def test_render_symbol method test_nested_array (line 133) | def test_nested_array method test_dynamic_find_var (line 137) | def test_dynamic_find_var method test_raw_value_variable (line 141) | def test_raw_value_variable method test_dynamic_find_var_with_drop (line 145) | def test_dynamic_find_var_with_drop method test_double_nested_variable_lookup (line 167) | def test_double_nested_variable_lookup method test_variable_lookup_should_not_hang_with_invalid_syntax (line 179) | def test_variable_lookup_should_not_hang_with_invalid_syntax method test_filter_with_single_trailing_comma (line 213) | def test_filter_with_single_trailing_comma method test_multiple_filters_with_trailing_commas (line 226) | def test_multiple_filters_with_trailing_commas method test_filter_with_colon_but_no_arguments (line 239) | def test_filter_with_colon_but_no_arguments method test_filter_chain_with_colon_no_args (line 252) | def test_filter_chain_with_colon_no_args method test_combining_trailing_comma_and_empty_args (line 265) | def test_combining_trailing_comma_and_empty_args FILE: test/test_helper.rb type Minitest (line 25) | module Minitest class Test (line 26) | class Test method fixture (line 27) | def fixture(name) type Assertions (line 32) | module Assertions function assert_template_result (line 35) | def assert_template_result( function assert_match_syntax_error (line 49) | def assert_match_syntax_error(match, template, error_mode: nil) function assert_syntax_error (line 56) | def assert_syntax_error(template, error_mode: nil) function assert_usage_increment (line 60) | def assert_usage_increment(name, times: 1) function with_global_filter (line 77) | def with_global_filter(*globals, &blk) function with_error_modes (line 85) | def with_error_modes(*modes) function with_custom_tag (line 95) | def with_custom_tag(tag_name, tag_class, &block) class ThingWithToLiquid (line 104) | class ThingWithToLiquid method to_liquid (line 105) | def to_liquid class SettingsDrop (line 110) | class SettingsDrop < Liquid::Drop method initialize (line 111) | def initialize(settings) method liquid_method_missing (line 116) | def liquid_method_missing(key) class IntegerDrop (line 121) | class IntegerDrop < Liquid::Drop method initialize (line 122) | def initialize(value) method to_s (line 127) | def to_s method to_liquid_value (line 131) | def to_liquid_value class BooleanDrop (line 136) | class BooleanDrop < Liquid::Drop method initialize (line 137) | def initialize(value) method to_liquid_value (line 142) | def to_liquid_value method to_s (line 146) | def to_s class StringDrop (line 151) | class StringDrop < Liquid::Drop method initialize (line 154) | def initialize(value) method to_liquid_value (line 159) | def to_liquid_value method to_s (line 163) | def to_s method to_str (line 167) | def to_str method inspect (line 171) | def inspect method <=> (line 175) | def <=>(other) class ErrorDrop (line 180) | class ErrorDrop < Liquid::Drop method standard_error (line 181) | def standard_error method argument_error (line 185) | def argument_error method syntax_error (line 189) | def syntax_error method runtime_error (line 193) | def runtime_error method exception (line 197) | def exception class CustomToLiquidDrop (line 202) | class CustomToLiquidDrop < Liquid::Drop method initialize (line 203) | def initialize(value) method to_liquid (line 208) | def to_liquid class HashWithCustomToS (line 213) | class HashWithCustomToS < Hash method to_s (line 214) | def to_s class HashWithoutCustomToS (line 219) | class HashWithoutCustomToS < Hash class StubFileSystem (line 222) | class StubFileSystem method initialize (line 225) | def initialize(values) method read_template_file (line 230) | def read_template_file(template_path) class StubTemplateFactory (line 236) | class StubTemplateFactory method initialize (line 239) | def initialize method for (line 243) | def for(template_name) FILE: test/unit/block_unit_test.rb class BlockUnitTest (line 5) | class BlockUnitTest < Minitest::Test method test_blankspace (line 8) | def test_blankspace method test_variable_beginning (line 13) | def test_variable_beginning method test_variable_end (line 20) | def test_variable_end method test_variable_middle (line 27) | def test_variable_middle method test_variable_with_multibyte_character (line 35) | def test_variable_with_multibyte_character method test_variable_many_embedded_fragments (line 41) | def test_variable_many_embedded_fragments method test_comment_tag_with_block (line 50) | def test_comment_tag_with_block method test_doc_tag_with_block (line 56) | def test_doc_tag_with_block method block_types (line 64) | def block_types(nodelist) FILE: test/unit/condition_unit_test.rb class ConditionUnitTest (line 5) | class ConditionUnitTest < Minitest::Test method setup (line 8) | def setup method test_basic_condition (line 12) | def test_basic_condition method test_default_operators_evalute_true (line 17) | def test_default_operators_evalute_true method test_default_operators_evalute_false (line 34) | def test_default_operators_evalute_false method test_contains_works_on_strings (line 46) | def test_contains_works_on_strings method test_contains_binary_encoding_compatibility_with_utf8 (line 58) | def test_contains_binary_encoding_compatibility_with_utf8 method test_invalid_comparation_operator (line 63) | def test_invalid_comparation_operator method test_comparation_of_int_and_str (line 67) | def test_comparation_of_int_and_str method test_hash_compare_backwards_compatibility (line 74) | def test_hash_compare_backwards_compatibility method test_contains_works_on_arrays (line 82) | def test_contains_works_on_arrays method test_contains_returns_false_for_nil_operands (line 97) | def test_contains_returns_false_for_nil_operands method test_contains_return_false_on_wrong_data_type (line 103) | def test_contains_return_false_on_wrong_data_type method test_contains_with_string_left_operand_coerces_right_operand_to_string (line 107) | def test_contains_with_string_left_operand_coerces_right_operand_to_st... method test_or_condition (line 112) | def test_or_condition method test_and_condition (line 125) | def test_and_condition method test_should_allow_custom_proc_operator (line 139) | def test_should_allow_custom_proc_operator method test_left_or_right_may_contain_operators (line 148) | def test_left_or_right_may_contain_operators method test_default_context_is_deprecated (line 155) | def test_default_context_is_deprecated method test_parse_expression_in_strict_mode (line 169) | def test_parse_expression_in_strict_mode method test_parse_expression_in_strict2_mode_raises_internal_error (line 179) | def test_parse_expression_in_strict2_mode_raises_internal_error method test_parse_expression_with_safe_true_in_strict2_mode (line 190) | def test_parse_expression_with_safe_true_in_strict2_mode method test_blank_with_whitespace_string (line 213) | def test_blank_with_whitespace_string method test_blank_with_empty_string (line 222) | def test_blank_with_empty_string method test_blank_with_empty_array (line 231) | def test_blank_with_empty_array method test_blank_with_empty_hash (line 240) | def test_blank_with_empty_hash method test_blank_with_nil (line 249) | def test_blank_with_nil method test_blank_with_false (line 258) | def test_blank_with_false method test_not_blank_with_true (line 267) | def test_not_blank_with_true method test_not_blank_with_number (line 276) | def test_not_blank_with_number method test_not_blank_with_string_content (line 285) | def test_not_blank_with_string_content method test_not_blank_with_non_empty_array (line 294) | def test_not_blank_with_non_empty_array method test_not_blank_with_non_empty_hash (line 303) | def test_not_blank_with_non_empty_hash method test_empty_with_empty_string (line 319) | def test_empty_with_empty_string method test_empty_with_whitespace_string_not_empty (line 328) | def test_empty_with_whitespace_string_not_empty method test_empty_with_empty_array (line 338) | def test_empty_with_empty_array method test_empty_with_empty_hash (line 347) | def test_empty_with_empty_hash method test_nil_is_not_empty (line 356) | def test_nil_is_not_empty method assert_evaluates_true (line 368) | def assert_evaluates_true(left, op, right) method assert_evaluates_false (line 375) | def assert_evaluates_false(left, op, right) method assert_evaluates_argument_error (line 382) | def assert_evaluates_argument_error(left, op, right) FILE: test/unit/environment_filter_test.rb class EnvironmentFilterTest (line 5) | class EnvironmentFilterTest < Minitest::Test type AccessScopeFilters (line 8) | module AccessScopeFilters function public_filter (line 9) | def public_filter function private_filter (line 13) | def private_filter type LateAddedFilter (line 19) | module LateAddedFilter function late_added_filter (line 20) | def late_added_filter(_input) method setup (line 25) | def setup method test_strainer (line 33) | def test_strainer method test_strainer_raises_argument_error (line 39) | def test_strainer_raises_argument_error method test_strainer_argument_error_contains_backtrace (line 46) | def test_strainer_argument_error_contains_backtrace method test_strainer_only_invokes_public_filter_methods (line 62) | def test_strainer_only_invokes_public_filter_methods method test_strainer_returns_nil_if_no_filter_method_found (line 71) | def test_strainer_returns_nil_if_no_filter_method_found method test_strainer_returns_first_argument_if_no_method_and_arguments_given (line 77) | def test_strainer_returns_first_argument_if_no_method_and_arguments_given method test_strainer_only_allows_methods_defined_in_filters (line 82) | def test_strainer_only_allows_methods_defined_in_filters method test_strainer_uses_a_class_cache_to_avoid_method_cache_invalidation (line 89) | def test_strainer_uses_a_class_cache_to_avoid_method_cache_invalidation method test_add_global_filter_clears_cache (line 101) | def test_add_global_filter_clears_cache FILE: test/unit/environment_test.rb class EnvironmentTest (line 5) | class EnvironmentTest < Minitest::Test class UnsubscribeFooter (line 8) | class UnsubscribeFooter < Liquid::Tag method render (line 9) | def render(_context) method test_custom_tag (line 14) | def test_custom_tag FILE: test/unit/file_system_unit_test.rb class FileSystemUnitTest (line 5) | class FileSystemUnitTest < Minitest::Test method test_default (line 8) | def test_default method test_local (line 14) | def test_local method test_custom_template_filename_patterns (line 32) | def test_custom_template_filename_patterns FILE: test/unit/i18n_unit_test.rb class I18nUnitTest (line 5) | class I18nUnitTest < Minitest::Test method setup (line 8) | def setup method test_simple_translate_string (line 12) | def test_simple_translate_string method test_nested_translate_string (line 16) | def test_nested_translate_string method test_single_string_interpolation (line 20) | def test_single_string_interpolation method test_raises_unknown_translation (line 30) | def test_raises_unknown_translation method test_sets_default_path_to_en (line 36) | def test_sets_default_path_to_en FILE: test/unit/lexer_unit_test.rb class LexerUnitTest (line 5) | class LexerUnitTest < Minitest::Test method test_strings (line 8) | def test_strings method test_integer (line 15) | def test_integer method test_float (line 22) | def test_float method test_comparison (line 29) | def test_comparison method test_comparison_without_whitespace (line 36) | def test_comparison_without_whitespace method test_comparison_with_negative_number (line 43) | def test_comparison_with_negative_number method test_raise_for_invalid_comparison (line 50) | def test_raise_for_invalid_comparison method test_specials (line 64) | def test_specials method test_fancy_identifiers (line 76) | def test_fancy_identifiers method test_whitespace (line 82) | def test_whitespace method test_unexpected_character (line 89) | def test_unexpected_character method test_negative_numbers (line 95) | def test_negative_numbers method test_greater_than_two_digits (line 102) | def test_greater_than_two_digits method test_error_with_utf8_character (line 109) | def test_error_with_utf8_character method test_contains_as_attribute_name (line 120) | def test_contains_as_attribute_name method test_tokenize_incomplete_expression (line 127) | def test_tokenize_incomplete_expression method test_error_with_invalid_utf8 (line 134) | def test_error_with_invalid_utf8 method tokenize (line 146) | def tokenize(input) FILE: test/unit/parse_context_unit_test.rb class ParseContextUnitTest (line 5) | class ParseContextUnitTest < Minitest::Test method test_safe_parse_expression_with_variable_lookup (line 8) | def test_safe_parse_expression_with_variable_lookup method test_safe_parse_expression_raises_syntax_error_for_invalid_expression (line 24) | def test_safe_parse_expression_raises_syntax_error_for_invalid_expression method test_parse_expression_with_variable_lookup (line 40) | def test_parse_expression_with_variable_lookup method test_parse_expression_with_safe_true (line 54) | def test_parse_expression_with_safe_true method test_parse_expression_with_empty_string (line 68) | def test_parse_expression_with_empty_string method test_parse_expression_with_empty_string_and_safe_true (line 79) | def test_parse_expression_with_empty_string_and_safe_true method test_safe_parse_expression_advances_parser_pointer (line 87) | def test_safe_parse_expression_advances_parser_pointer method test_parse_expression_with_whitespace_in_strict2_mode (line 105) | def test_parse_expression_with_whitespace_in_strict2_mode method strict_parse_context (line 112) | def strict_parse_context method strict2_parse_context (line 118) | def strict2_parse_context FILE: test/unit/parse_tree_visitor_test.rb class ParseTreeVisitorTest (line 5) | class ParseTreeVisitorTest < Minitest::Test method test_variable (line 8) | def test_variable method test_varible_with_filter (line 15) | def test_varible_with_filter method test_dynamic_variable (line 22) | def test_dynamic_variable method test_echo (line 29) | def test_echo method test_if_condition (line 36) | def test_if_condition method test_complex_if_condition (line 43) | def test_complex_if_condition method test_if_body (line 50) | def test_if_body method test_unless_condition (line 57) | def test_unless_condition method test_complex_unless_condition (line 64) | def test_complex_unless_condition method test_unless_body (line 71) | def test_unless_body method test_elsif_condition (line 78) | def test_elsif_condition method test_complex_elsif_condition (line 85) | def test_complex_elsif_condition method test_elsif_body (line 92) | def test_elsif_body method test_else_body (line 99) | def test_else_body method test_case_left (line 106) | def test_case_left method test_case_condition (line 113) | def test_case_condition method test_case_when_body (line 120) | def test_case_when_body method test_case_else_body (line 127) | def test_case_else_body method test_for_in (line 134) | def test_for_in method test_for_limit (line 141) | def test_for_limit method test_for_offset (line 148) | def test_for_offset method test_for_body (line 155) | def test_for_body method test_for_range (line 162) | def test_for_range method test_tablerow_in (line 169) | def test_tablerow_in method test_tablerow_limit (line 176) | def test_tablerow_limit method test_tablerow_offset (line 183) | def test_tablerow_offset method test_tablerow_body (line 190) | def test_tablerow_body method test_cycle (line 197) | def test_cycle method test_assign (line 204) | def test_assign method test_capture (line 211) | def test_capture method test_include (line 218) | def test_include method test_include_with (line 225) | def test_include_with method test_include_for (line 232) | def test_include_for method test_render_with (line 239) | def test_render_with method test_render_for (line 246) | def test_render_for method test_preserve_tree_structure (line 253) | def test_preserve_tree_structure method traversal (line 266) | def traversal(template) method visit (line 272) | def visit(template) FILE: test/unit/parser_unit_test.rb class ParserUnitTest (line 5) | class ParserUnitTest < Minitest::Test method test_consume (line 8) | def test_consume method test_jump (line 15) | def test_jump method test_consume? (line 21) | def test_consume? method test_id? (line 29) | def test_id? method test_look (line 38) | def test_look method test_expressions (line 48) | def test_expressions method test_ranges (line 61) | def test_ranges method test_arguments (line 69) | def test_arguments method test_invalid_expression (line 78) | def test_invalid_expression method new_parser (line 87) | def new_parser(str) FILE: test/unit/partial_cache_unit_test.rb class PartialCacheUnitTest (line 5) | class PartialCacheUnitTest < Minitest::Test method test_uses_the_file_system_register_if_present (line 6) | def test_uses_the_file_system_register_if_present method test_reads_from_the_file_system_only_once_per_file (line 22) | def test_reads_from_the_file_system_only_once_per_file method test_cache_state_is_stored_per_context (line 39) | def test_cache_state_is_stored_per_context method test_cache_is_not_broken_when_a_different_parse_context_is_used (line 72) | def test_cache_is_not_broken_when_a_different_parse_context_is_used method test_uses_default_template_factory_when_no_template_factory_found_in_register (line 94) | def test_uses_default_template_factory_when_no_template_factory_found_... method test_uses_template_factory_register_if_present (line 110) | def test_uses_template_factory_register_if_present method test_cache_state_is_shared_for_subcontexts (line 129) | def test_cache_state_is_shared_for_subcontexts method test_uses_template_name_from_template_factory (line 160) | def test_uses_template_name_from_template_factory method test_includes_error_mode_into_template_cache (line 178) | def test_includes_error_mode_into_template_cache FILE: test/unit/regexp_unit_test.rb class RegexpUnitTest (line 6) | class RegexpUnitTest < Minitest::Test method test_empty (line 9) | def test_empty method test_quote (line 13) | def test_quote method test_words (line 17) | def test_words method test_tags (line 21) | def test_tags method test_double_quoted_words (line 27) | def test_double_quoted_words method test_single_quoted_words (line 31) | def test_single_quoted_words method test_quoted_words_in_the_middle (line 35) | def test_quoted_words_in_the_middle method test_variable_parser (line 39) | def test_variable_parser method test_variable_parser_with_large_input (line 49) | def test_variable_parser_with_large_input FILE: test/unit/registers_unit_test.rb class RegistersUnitTest (line 5) | class RegistersUnitTest < Minitest::Test method test_set (line 8) | def test_set method test_get_missing_key (line 18) | def test_get_missing_key method test_delete (line 24) | def test_delete method test_fetch (line 39) | def test_fetch method test_key (line 63) | def test_key method test_static_register_can_be_frozen (line 74) | def test_static_register_can_be_frozen method test_new_static_retains_static (line 96) | def test_new_static_retains_static method test_multiple_instances_are_unique (line 120) | def test_multiple_instances_are_unique method test_initialization_reused_static_same_memory_object (line 140) | def test_initialization_reused_static_same_memory_object FILE: test/unit/resource_limits_unit_test.rb class ResourceLimitsUnitTest (line 5) | class ResourceLimitsUnitTest < Minitest::Test method test_cumulative_scores_initialize_to_zero (line 6) | def test_cumulative_scores_initialize_to_zero method test_cumulative_limits_default_to_nil (line 12) | def test_cumulative_limits_default_to_nil method test_cumulative_limits_configurable_via_hash (line 18) | def test_cumulative_limits_configurable_via_hash method test_cumulative_limits_configurable_via_accessor (line 27) | def test_cumulative_limits_configurable_via_accessor method test_cumulative_scores_survive_reset (line 33) | def test_cumulative_scores_survive_reset method test_cumulative_scores_accumulate_across_resets (line 46) | def test_cumulative_scores_accumulate_across_resets method test_cumulative_render_score_limit_raises (line 58) | def test_cumulative_render_score_limit_raises method test_cumulative_assign_score_limit_raises (line 71) | def test_cumulative_assign_score_limit_raises method test_per_template_limits_still_work_with_cumulative (line 82) | def test_per_template_limits_still_work_with_cumulative FILE: test/unit/strainer_template_unit_test.rb class StrainerTemplateUnitTest (line 5) | class StrainerTemplateUnitTest < Minitest::Test method test_add_filter_when_wrong_filter_class (line 8) | def test_add_filter_when_wrong_filter_class type PrivateMethodOverrideFilter (line 19) | module PrivateMethodOverrideFilter function public_filter (line 22) | def public_filter method test_add_filter_raises_when_module_privately_overrides_registered_public_methods (line 27) | def test_add_filter_raises_when_module_privately_overrides_registered_... type ProtectedMethodOverrideFilter (line 38) | module ProtectedMethodOverrideFilter function public_filter (line 41) | def public_filter method test_add_filter_raises_when_module_overrides_registered_public_method_as_protected (line 46) | def test_add_filter_raises_when_module_overrides_registered_public_met... type PublicMethodOverrideFilter (line 57) | module PublicMethodOverrideFilter function public_filter (line 58) | def public_filter method test_add_filter_does_not_raise_when_module_overrides_previously_registered_method (line 63) | def test_add_filter_does_not_raise_when_module_overrides_previously_re... method test_add_filter_does_not_include_already_included_module (line 72) | def test_add_filter_does_not_include_already_included_module FILE: test/unit/tag_unit_test.rb class TagUnitTest (line 5) | class TagUnitTest < Minitest::Test method test_tag (line 8) | def test_tag method test_return_raw_text_of_tag (line 14) | def test_return_raw_text_of_tag method test_tag_name_should_return_name_of_the_tag (line 19) | def test_tag_name_should_return_name_of_the_tag class CustomTag (line 24) | class CustomTag < Liquid::Tag method render (line 25) | def render(_context); end method test_tag_render_to_output_buffer_nil_value (line 28) | def test_tag_render_to_output_buffer_nil_value method new_tokenizer (line 35) | def new_tokenizer FILE: test/unit/tags/case_tag_unit_test.rb class CaseTagUnitTest (line 5) | class CaseTagUnitTest < Minitest::Test method test_case_nodelist (line 8) | def test_case_nodelist method test_case_with_trailing_element (line 13) | def test_case_with_trailing_element method test_case_when_with_trailing_element (line 34) | def test_case_when_with_trailing_element method test_case_when_with_comma (line 55) | def test_case_when_with_comma method test_case_when_with_or (line 70) | def test_case_when_with_or method test_case_when_empty (line 85) | def test_case_when_empty method test_case_with_invalid_expression (line 105) | def test_case_with_invalid_expression method test_case_when_with_invalid_expression (line 127) | def test_case_when_with_invalid_expression FILE: test/unit/tags/comment_tag_unit_test.rb class CommentTagUnitTest (line 5) | class CommentTagUnitTest < Minitest::Test method test_comment_inside_liquid_tag (line 6) | def test_comment_inside_liquid_tag method test_does_not_parse_nodes_inside_a_comment (line 19) | def test_does_not_parse_nodes_inside_a_comment method test_allows_unclosed_tags (line 34) | def test_allows_unclosed_tags method test_open_tags_in_comment (line 42) | def test_open_tags_in_comment method test_child_comment_tags_need_to_be_closed (line 75) | def test_child_comment_tags_need_to_be_closed method test_child_raw_tags_need_to_be_closed (line 95) | def test_child_raw_tags_need_to_be_closed method test_error_line_number_is_correct (line 114) | def test_error_line_number_is_correct method test_comment_tag_delimiter_with_extra_strings (line 131) | def test_comment_tag_delimiter_with_extra_strings method test_nested_comment_tag_with_extra_strings (line 145) | def test_nested_comment_tag_with_extra_strings method test_ignores_delimiter_with_extra_strings (line 159) | def test_ignores_delimiter_with_extra_strings method test_delimiter_can_have_extra_strings (line 172) | def test_delimiter_can_have_extra_strings method test_with_whitespace_control (line 180) | def test_with_whitespace_control method test_dont_override_liquid_tag_whitespace_control (line 191) | def test_dont_override_liquid_tag_whitespace_control FILE: test/unit/tags/doc_tag_unit_test.rb class DocTagUnitTest (line 5) | class DocTagUnitTest < Minitest::Test method test_doc_tag (line 6) | def test_doc_tag method test_doc_tag_body_content (line 23) | def test_doc_tag_body_content method test_doc_tag_does_not_support_extra_arguments (line 38) | def test_doc_tag_does_not_support_extra_arguments method test_doc_tag_must_support_valid_tags (line 54) | def test_doc_tag_must_support_valid_tags method test_doc_tag_ignores_liquid_nodes (line 60) | def test_doc_tag_ignores_liquid_nodes method test_doc_tag_ignores_unclosed_liquid_tags (line 77) | def test_doc_tag_ignores_unclosed_liquid_tags method test_doc_tag_does_not_allow_nested_docs (line 87) | def test_doc_tag_does_not_allow_nested_docs method test_doc_tag_ignores_nested_raw_tags (line 105) | def test_doc_tag_ignores_nested_raw_tags method test_doc_tag_ignores_unclosed_assign (line 115) | def test_doc_tag_ignores_unclosed_assign method test_doc_tag_ignores_malformed_syntax (line 125) | def test_doc_tag_ignores_malformed_syntax method test_doc_tag_captures_token_before_enddoc (line 134) | def test_doc_tag_captures_token_before_enddoc method test_doc_tag_preserves_error_line_numbers (line 148) | def test_doc_tag_preserves_error_line_numbers method test_doc_tag_whitespace_control (line 164) | def test_doc_tag_whitespace_control method test_doc_tag_delimiter_handling (line 175) | def test_doc_tag_delimiter_handling method test_doc_tag_visitor (line 190) | def test_doc_tag_visitor method test_doc_tag_blank_with_empty_content (line 199) | def test_doc_tag_blank_with_empty_content method test_doc_tag_blank_with_content (line 213) | def test_doc_tag_blank_with_content method test_doc_tag_blank_with_whitespace_only (line 227) | def test_doc_tag_blank_with_whitespace_only method test_doc_tag_nodelist_returns_array_with_body (line 241) | def test_doc_tag_nodelist_returns_array_with_body method test_doc_tag_nodelist_with_empty_content (line 258) | def test_doc_tag_nodelist_with_empty_content method traversal (line 275) | def traversal(template) method visit (line 284) | def visit(template) FILE: test/unit/tags/for_tag_unit_test.rb class ForTagUnitTest (line 5) | class ForTagUnitTest < Minitest::Test method test_for_nodelist (line 6) | def test_for_nodelist method test_for_else_nodelist (line 11) | def test_for_else_nodelist FILE: test/unit/tags/if_tag_unit_test.rb class IfTagUnitTest (line 5) | class IfTagUnitTest < Minitest::Test method test_if_nodelist (line 6) | def test_if_nodelist FILE: test/unit/template_factory_unit_test.rb class TemplateFactoryUnitTest (line 5) | class TemplateFactoryUnitTest < Minitest::Test method test_for_returns_liquid_template_instance (line 8) | def test_for_returns_liquid_template_instance FILE: test/unit/template_unit_test.rb class TemplateUnitTest (line 5) | class TemplateUnitTest < Minitest::Test method test_sets_default_localization_in_document (line 8) | def test_sets_default_localization_in_document method test_sets_default_localization_in_context_with_quick_initialization (line 14) | def test_sets_default_localization_in_context_with_quick_initialization class FakeTag (line 23) | class FakeTag; end method test_tags_can_be_looped_over (line 25) | def test_tags_can_be_looped_over class TemplateSubclass (line 32) | class TemplateSubclass < Liquid::Template method test_template_inheritance (line 35) | def test_template_inheritance method test_invalid_utf8 (line 39) | def test_invalid_utf8 FILE: test/unit/tokenizer_unit_test.rb class TokenizerTest (line 5) | class TokenizerTest < Minitest::Test method test_tokenize_strings (line 6) | def test_tokenize_strings method test_tokenize_variables (line 12) | def test_tokenize_variables method test_tokenize_blocks (line 19) | def test_tokenize_blocks method test_calculate_line_numbers_per_token_with_profiling (line 27) | def test_calculate_line_numbers_per_token_with_profiling method test_tokenize_with_nil_source_returns_empty_array (line 34) | def test_tokenize_with_nil_source_returns_empty_array method test_incomplete_curly_braces (line 38) | def test_incomplete_curly_braces method test_unmatching_start_and_end (line 44) | def test_unmatching_start_and_end method new_tokenizer (line 53) | def new_tokenizer(source, parse_context: Liquid::ParseContext.new, sta... method tokenize (line 57) | def tokenize(source) method tokenize_line_numbers (line 67) | def tokenize_line_numbers(source) FILE: test/unit/variable_unit_test.rb class VariableUnitTest (line 5) | class VariableUnitTest < Minitest::Test method test_variable (line 8) | def test_variable method test_filters (line 13) | def test_filters method test_filter_with_date_parameter (line 55) | def test_filter_with_date_parameter method test_filters_without_whitespace (line 61) | def test_filters_without_whitespace method test_symbol (line 75) | def test_symbol method test_string_to_filter (line 81) | def test_string_to_filter method test_string_single_quoted (line 87) | def test_string_single_quoted method test_string_double_quoted (line 92) | def test_string_double_quoted method test_integer (line 97) | def test_integer method test_float (line 102) | def test_float method test_dashes (line 107) | def test_dashes method test_string_with_special_chars (line 118) | def test_string_with_special_chars method test_string_dot (line 123) | def test_string_dot method test_filter_with_keyword_arguments (line 128) | def test_filter_with_keyword_arguments method test_lax_filter_argument_parsing (line 134) | def test_lax_filter_argument_parsing method test_strict_filter_argument_parsing (line 156) | def test_strict_filter_argument_parsing method test_strict2_filter_argument_parsing (line 164) | def test_strict2_filter_argument_parsing method test_output_raw_source_of_variable (line 200) | def test_output_raw_source_of_variable method test_variable_lookup_interface (line 205) | def test_variable_lookup_interface method create_variable (line 213) | def create_variable(markup, options = {})