quickdraw/compilation_equivalence_cases/string_escapes.rb
Lines
0%0 of 22 covered
Branches
—0 of 0 covered
Methods
0%0 of 6 covered
- Not run
- 3-913-1519-2125-2731-3337-39
- Never called
EquivalenceCases::StringEscapes::Quotes#view_templateEquivalenceCases::StringEscapes::HashCurly#view_templateEquivalenceCases::StringEscapes::HashAt#view_templateEquivalenceCases::StringEscapes::Attribute#view_templateEquivalenceCases::StringEscapes::PlainText#view_templateEquivalenceCases::StringEscapes::SingleQuoted#view_template
| 1 | # frozen_string_literal: true | |
| 2 | ||
| 3 | 0 | module EquivalenceCases |
| 4 | 0 | module StringEscapes |
| 5 | 0 | class Quotes < Phlex::HTML |
| 6 | 0 | def view_template |
| 7 | 0 | div { 'a "quoted" \\ back\slash' } |
| 8 | 0 | div { "tab\there\nnewline" } |
| 9 | 0 | div(title: 'q"uo\\te') { "x" } |
| 10 | end | |
| 11 | end | |
| 12 | ||
| 13 | 0 | class HashCurly < Phlex::HTML |
| 14 | 0 | def view_template |
| 15 | 0 | div { 'lit #{x}' } # rubocop:disable Lint/InterpolationCheck |
| 16 | end | |
| 17 | end | |
| 18 | ||
| 19 | 0 | class HashAt < Phlex::HTML |
| 20 | 0 | def view_template |
| 21 | 0 | div { 'lit #@x and #$y' } |
| 22 | end | |
| 23 | end | |
| 24 | ||
| 25 | 0 | class Attribute < Phlex::HTML |
| 26 | 0 | def view_template |
| 27 | 0 | div(title: 'a#{b}') { "x" } # rubocop:disable Lint/InterpolationCheck |
| 28 | end | |
| 29 | end | |
| 30 | ||
| 31 | 0 | class PlainText < Phlex::HTML |
| 32 | 0 | def view_template |
| 33 | 0 | plain 'p #{x}' # rubocop:disable Lint/InterpolationCheck |
| 34 | end | |
| 35 | end | |
| 36 | ||
| 37 | 0 | class SingleQuoted < Phlex::HTML |
| 38 | 0 | def view_template |
| 39 | 0 | pre { 'single quoted #{not}' } |
| 40 | end | |
| 41 | end | |
| 42 | end | |
| 43 | end |