Skip to content

Commit 2048d89

Browse files
committed
fix qldoc and tests
1 parent 8aba71f commit 2048d89

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

go/ql/lib/semmle/go/frameworks/Fasthttp.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,9 @@ module Fasthttp {
439439
}
440440
}
441441

442+
/**
443+
* Provide modeling for fasthttp.RequestCtx Type
444+
*/
442445
module RequestCtx {
443446
/**
444447
* The Methods that don't sanitize user provided file paths
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
| -:0:0:0:0 | This application uses version go1.20 of the source-processing packages but runs version go1.21 of 'go list'. It may fail to process source files that rely on newer language features. If so, rebuild the application using a newer version of Go. |
21
| test.go:7:1:7:1 | expected declaration, found This |

go/ql/test/library-tests/semmle/go/dataflow/FlowSteps/LocalFlowStep.expected

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
| file://:0:0:0:0 | function append | main.go:40:8:40:13 | append |
4545
| file://:0:0:0:0 | function copy | main.go:42:2:42:5 | copy |
4646
| file://:0:0:0:0 | function make | main.go:41:8:41:11 | make |
47+
| file://:0:0:0:0 | function max | main.go:65:7:65:9 | max |
48+
| file://:0:0:0:0 | function min | main.go:64:7:64:9 | min |
4749
| main.go:3:6:3:10 | function test1 | main.go:34:2:34:6 | test1 |
4850
| main.go:3:12:3:12 | argument corresponding to x | main.go:3:12:3:12 | definition of x |
4951
| main.go:3:12:3:12 | definition of x | main.go:5:5:5:5 | x |
@@ -123,8 +125,14 @@
123125
| main.go:63:7:63:7 | 3 | main.go:63:2:63:2 | definition of z |
124126
| main.go:64:2:64:2 | definition of a | main.go:66:9:66:9 | a |
125127
| main.go:64:7:64:18 | call to min | main.go:64:2:64:2 | definition of a |
128+
| main.go:64:11:64:11 | x | main.go:64:7:64:18 | call to min |
129+
| main.go:64:14:64:14 | y | main.go:64:7:64:18 | call to min |
130+
| main.go:64:17:64:17 | z | main.go:64:7:64:18 | call to min |
126131
| main.go:65:2:65:2 | definition of b | main.go:66:12:66:12 | b |
127132
| main.go:65:7:65:18 | call to max | main.go:65:2:65:2 | definition of b |
133+
| main.go:65:11:65:11 | x | main.go:65:7:65:18 | call to max |
134+
| main.go:65:14:65:14 | y | main.go:65:7:65:18 | call to max |
135+
| main.go:65:17:65:17 | z | main.go:65:7:65:18 | call to max |
128136
| strings.go:8:12:8:12 | argument corresponding to s | strings.go:8:12:8:12 | definition of s |
129137
| strings.go:8:12:8:12 | definition of s | strings.go:9:24:9:24 | s |
130138
| strings.go:8:12:8:12 | definition of s | strings.go:10:27:10:27 | s |

0 commit comments

Comments
 (0)