add get_file_content and test, update test_get_file_info

This commit is contained in:
2026-03-27 19:36:06 +01:00
parent 8f8d0286e3
commit 164d89c295
4 changed files with 120 additions and 6 deletions
+17
View File
@@ -0,0 +1,17 @@
from functions.get_file_content import get_file_content
def test():
result = get_file_content("calculator", "main.py")
print(result)
result = get_file_content("calculator", "pkg/calculator.py")
print(result)
result = get_file_content("calculator", "/bin/cat")
print(result)
result = get_file_content("calculator", "pkg/does_not_exist.py")
print(result)
if __name__ == "__main__":
test()