Skip to content

Commit bcaba45

Browse files
committed
Python: Expand pathlib tests
1 parent 059dea7 commit bcaba45

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

python/ql/test/library-tests/frameworks/stdlib-py3/FileSystemAccess.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,15 @@
2121

2222
wb = p.write_bytes
2323
wb(b"hello") # $ getAPathArgument=p fileWriteData=b"hello"
24+
25+
p.link_to("target") # $ getAPathArgument=p MISSING: getAPathArgument="target"
26+
p.link_to(target="target") # $ getAPathArgument=p MISSING: getAPathArgument="target"
27+
28+
p.samefile("other_path") # $ getAPathArgument=p MISSING: getAPathArgument="other_path"
29+
p.samefile(other_path="other_path") # $ getAPathArgument=p MISSING: getAPathArgument="other_path"
30+
31+
p.rename("target") # $ getAPathArgument=p MISSING: getAPathArgument="target"
32+
p.rename(target="target") # $ getAPathArgument=p MISSING: getAPathArgument="target"
33+
34+
p.replace("target") # $ getAPathArgument=p MISSING: getAPathArgument="target"
35+
p.replace(target="target") # $ getAPathArgument=p MISSING: getAPathArgument="target"

0 commit comments

Comments
 (0)