mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Python: Expand pathlib tests
This commit is contained in:
@@ -21,3 +21,15 @@ o(name) # $ getAPathArgument=name
|
||||
|
||||
wb = p.write_bytes
|
||||
wb(b"hello") # $ getAPathArgument=p fileWriteData=b"hello"
|
||||
|
||||
p.link_to("target") # $ getAPathArgument=p MISSING: getAPathArgument="target"
|
||||
p.link_to(target="target") # $ getAPathArgument=p MISSING: getAPathArgument="target"
|
||||
|
||||
p.samefile("other_path") # $ getAPathArgument=p MISSING: getAPathArgument="other_path"
|
||||
p.samefile(other_path="other_path") # $ getAPathArgument=p MISSING: getAPathArgument="other_path"
|
||||
|
||||
p.rename("target") # $ getAPathArgument=p MISSING: getAPathArgument="target"
|
||||
p.rename(target="target") # $ getAPathArgument=p MISSING: getAPathArgument="target"
|
||||
|
||||
p.replace("target") # $ getAPathArgument=p MISSING: getAPathArgument="target"
|
||||
p.replace(target="target") # $ getAPathArgument=p MISSING: getAPathArgument="target"
|
||||
|
||||
Reference in New Issue
Block a user