diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-09-20 21:39:12 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-09-20 21:39:12 +0000 |
commit | 9915eaeeaf6287069b261697846881480912e968 (patch) | |
tree | 5e99a0cef1465031bbf59371175f58467920704c /test.lua | |
parent | added a docker build, though not sure how to use X or wayland or tmux through... (diff) | |
download | lclip-9915eaeeaf6287069b261697846881480912e968.tar.gz lclip-9915eaeeaf6287069b261697846881480912e968.zip |
wip, adding ollama as an alternative to detect-secrets
Diffstat (limited to 'test.lua')
-rwxr-xr-x | test.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test.lua b/test.lua new file mode 100755 index 0000000..5efc9c4 --- /dev/null +++ b/test.lua @@ -0,0 +1,12 @@ +#!/usr/bin/env lua5.3 + +local luaunit = require("luaunit") +local ollama = require("ollama") + +luaunit.assertEquals(ollama.ask_ollama( + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEs3GbmHMO0n1rL2vsn7+AH9xJwZ9BOUU6rR6x7hW8uX devi@terminaldweller.com", + 5), false) +luaunit.assertEquals(ollama.ask_ollama('password="12345661234"', 5), true) +luaunit.assertEquals(ollama.ask_ollama( + "W65X2UljhbM0H9kTVogZ8TnCnIqPbCvvqVUsjZ9gWxjWgFiR1Uzolouc1ghKXUyqinhVcZ1lHnXWv2jHoVRU0dC0DZdyDgYfUiHdBwAeqryc0fT6d7nxgs0UErgwOkNt8S9tKUwadRscS8VV7q2j6F5FvSfyTGflluminatevrFOcGwD1RXkJP0J2aVQWxCCszvTSNhRPTM3TeUw8dXoapXTb2IcSUwKCvAdEhemFOsgU27wF7vHYDrm6GMVofZEwAitpVQxDDPvl7qefIuXdFuDJthnxH8uUJpEbSTWXyFLaE0n5QS063grrx0ar1TCxOpJiiGTSadDeTx8OQAyemqQYj7LoYCkdKCHX7G8VSEuJlFJ6R2CM", + 5), true) |