mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Python: Expand tests of open
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
import builtins
|
||||
import io
|
||||
|
||||
open("filepath") # $getAPathArgument="filepath"
|
||||
open(file="filepath") # $getAPathArgument="filepath"
|
||||
|
||||
@@ -5,3 +8,11 @@ o = open
|
||||
|
||||
o("filepath") # $ MISSING: getAPathArgument="filepath"
|
||||
o(file="filepath") # $ MISSING: getAPathArgument="filepath"
|
||||
|
||||
|
||||
builtins.open("filepath") # $ MISSING: getAPathArgument="filepath"
|
||||
builtins.open(file="filepath") # $ MISSING: getAPathArgument="filepath"
|
||||
|
||||
|
||||
io.open("filepath") # $ MISSING: getAPathArgument="filepath"
|
||||
io.open(file="filepath") # $ MISSING: getAPathArgument="filepath"
|
||||
|
||||
Reference in New Issue
Block a user