Skip to content

Commit

Permalink
Added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stensmo committed Dec 16, 2023
1 parent 1e8c488 commit 799ae8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ include("setup.jl")
@test isfile(tempDir * "KeyGenerator.png")
@test dirs == ["example"]
@test isfile("readme.txt")
@test walkdirFiles == walkdirResults

end

6 changes: 5 additions & 1 deletion test/setup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ cd(sftp, "..")

SFTPClient.download.(sftp, "readme.txt", downloadDir=".")

(walkdirRoot, walkdirDirs, walkdirFiles) = walkdir(sftp, ".")


actualFiles = ["KeyGenerator.png",
"KeyGeneratorSmall.png",
Expand Down Expand Up @@ -63,4 +65,6 @@ actualStructs = [
SFTPStatStruct("winceclient.png", 0x0000000000008180, 1, "demo", "users", 2635, 1.1742624e9)
SFTPStatStruct("winceclientSmall.png", 0x0000000000008180, 1, "demo", "users", 6146, 1.1742624e9)
SFTPStatStruct("WinFormClient.png", 0x0000000000008180, 1, "demo", "users", 80000, 1.1742624e9)
SFTPStatStruct("WinFormClientSmall.png", 0x0000000000008180, 1, "demo", "users", 17911, 1.1742624e9)]
SFTPStatStruct("WinFormClientSmall.png", 0x0000000000008180, 1, "demo", "users", 17911, 1.1742624e9)]

walkdirResults = ("/pub//example/", String[], ["imap-console-client.png", "KeyGenerator.png", "KeyGeneratorSmall.png", "mail-editor.png", "mail-send-winforms.png", "mime-explorer.png", "pocketftp.png", "pocketftpSmall.png", "pop3-browser.png", "pop3-console-client.png", "readme.txt", "ResumableTransfer.png", "winceclient.png", "winceclientSmall.png", "WinFormClient.png", "WinFormClientSmall.png"])

0 comments on commit 799ae8e

Please sign in to comment.