Skip to content

Commit 974017b

Browse files
committed
PS: Accept test changes.
1 parent 0e606e6 commit 974017b

File tree

4 files changed

+13
-209
lines changed

4 files changed

+13
-209
lines changed

powershell/ql/lib/semmle/code/powershell/ThrowStmt.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class ThrowStmt extends @throw_statement, Stmt {
77
if this.hasPipeline() then result = "throw ..." else result = "throw"
88
}
99

10-
Pipeline getPipeline() { throw_statement_pipeline(this, result) }
10+
PipelineBase getPipeline() { throw_statement_pipeline(this, result) }
1111

1212
predicate hasPipeline() { exists(this.getPipeline()) }
1313
}
Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,24 @@
11
| ExitStatement.ps1:1:1:1:8 | exit ... |
22
| ExitStatement.ps1:1:6:1:8 | -1 |
3-
| ExitStatement.ps1:1:6:1:8 | -1 |
43
| IfStatement.ps1:1:1:1:7 | ...=... |
54
| IfStatement.ps1:1:6:1:7 | 4 |
65
| IfStatement.ps1:3:1:8:2 | if (...) {...} else {...} |
76
| IfStatement.ps1:3:5:3:13 | ... -ge ... |
8-
| IfStatement.ps1:3:5:3:13 | ... -ge ... |
97
| IfStatement.ps1:4:2:4:36 | $x is greater than or equal to 3 |
10-
| IfStatement.ps1:4:2:4:36 | $x is greater than or equal to 3 |
11-
| IfStatement.ps1:7:2:7:21 | $x is less than 3 |
128
| IfStatement.ps1:7:2:7:21 | $x is less than 3 |
139
| TrapStatement.ps1:1:1:4:2 | TrapTest |
1410
| TrapStatement.ps1:2:5:2:26 | TrapStatement at: TrapStatement.ps1:2:5:2:26 |
1511
| TrapStatement.ps1:2:11:2:25 | Error found. |
16-
| TrapStatement.ps1:2:11:2:25 | Error found. |
17-
| TrapStatement.ps1:3:5:3:19 | nonsenseString |
1812
| TrapStatement.ps1:3:5:3:19 | nonsenseString |
1913
| TrapStatement.ps1:6:1:6:9 | TrapTest |
20-
| TrapStatement.ps1:6:1:6:9 | TrapTest |
2114
| Try.ps1:1:1:13:2 | try {...} |
2215
| Try.ps1:2:4:2:95 | ...=... |
2316
| Try.ps1:2:17:2:95 | New-Object |
24-
| Try.ps1:2:17:2:95 | New-Object |
25-
| Try.ps1:2:69:2:94 | ...,... |
2617
| Try.ps1:2:69:2:94 | ...,... |
2718
| Try.ps1:3:5:3:21 | throw ... |
2819
| Try.ps1:3:11:3:21 | Exception |
29-
| Try.ps1:3:11:3:21 | Exception |
30-
| Try.ps1:6:5:6:64 | Unable to download MyDoc.doc from http://www.contoso.com. |
3120
| Try.ps1:6:5:6:64 | Unable to download MyDoc.doc from http://www.contoso.com. |
3221
| Try.ps1:9:5:9:52 | An error occurred that could not be resolved. |
33-
| Try.ps1:9:5:9:52 | An error occurred that could not be resolved. |
34-
| Try.ps1:12:5:12:37 | The finally block is executed. |
3522
| Try.ps1:12:5:12:37 | The finally block is executed. |
3623
| UseProcessBlockForPipelineCommand.ps1:1:1:11:2 | Get-Number |
3724
| UseProcessBlockForPipelineCommand.ps1:10:5:10:12 | Number |
38-
| UseProcessBlockForPipelineCommand.ps1:10:5:10:12 | Number |

0 commit comments

Comments
 (0)