Skip to content

Commit 92f56a4

Browse files
(GH-14) Add test for the double-quoted heredocs.
1 parent 1dc0279 commit 92f56a4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

t/ValuesAndExpressions/PreventSQLInjection.run

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ my $heredoc = <<__HERE__
104104
FROM $table
105105
__HERE__
106106

107-
## name Heredoc with variable in last line
107+
## name (GH-14) Heredoc with variable in last line.
108108
## failures 1
109109
## cut
110110

@@ -113,6 +113,15 @@ my $heredoc = <<__HERE__
113113
FROM $table
114114
__HERE__
115115

116+
## name (GH-14) Double-quoted heredoc with variable in last line.
117+
## failures 1
118+
## cut
119+
120+
my $heredoc = <<"HERE"
121+
SELECT
122+
FROM $table
123+
"HERE"
124+
116125
## name Double-quoted heredoc with multiple variables.
117126
## failures 1
118127
## cut

0 commit comments

Comments
 (0)