diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-06-04 23:14:29 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-06-04 23:14:29 +0000 |
commit | b7185d908c7637163b391e95bd958628c9b59798 (patch) | |
tree | fc5db32dbc61f4cca40b4033ccb68681bbe58637 /plugins_test.go | |
parent | updated all images to alpine 3.20 (diff) | |
download | milla-b7185d908c7637163b391e95bd958628c9b59798.tar.gz milla-b7185d908c7637163b391e95bd958628c9b59798.zip |
added ollama,chatgpt and gemini request functions for the lua plugins to use
Diffstat (limited to 'plugins_test.go')
-rw-r--r-- | plugins_test.go | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/plugins_test.go b/plugins_test.go deleted file mode 100644 index 894ff3c..0000000 --- a/plugins_test.go +++ /dev/null @@ -1,34 +0,0 @@ -package main - -import ( - "testing" - - lua "github.com/yuin/gopher-lua" -) - -func TestMetaTable(t *testing.T) { - luaState := lua.NewState() - defer luaState.Close() - - RegisterCustomLuaTypes(luaState) - - if err := luaState.DoString(` - print("Testing MetaTable") - print(toml_config) - - for index, data in ipairs(toml_config) do - print(index, data) - for k,v in pairs(data) do - print("one") - print(k,v) - end - end - - config = toml_config.new() - print(config:IrcServer()) - config:IrcServer("irc.freenode.net") - print(config:IrcServer()) - `); err != nil { - t.Fatal(err) - } -} |