summaryrefslogtreecommitdiff
path: root/internal/test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-08-16 14:58:03 +0300
committerPaul Buetow <paul@buetow.org>2025-08-16 14:58:03 +0300
commit1e1df8c204f6771719f85d8402128d72138bb863 (patch)
tree20508d35f86625ff5b74b509176111ffde163605 /internal/test.go
parenta6a8b84690c50767f714b413496b5aeb45b31c21 (diff)
llm: add pluggable provider with OpenAI default; extensive logging; LSP completion integration with TextEdit, param-aware prompts; remove idle gating; label/filter improvements; docs update
Diffstat (limited to 'internal/test.go')
-rw-r--r--internal/test.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/internal/test.go b/internal/test.go
new file mode 100644
index 0000000..586a1bc
--- /dev/null
+++ b/internal/test.go
@@ -0,0 +1,18 @@
+package internal
+
+import "os"
+
+func fib(i int) int {
+ if i <= 1 {
+ return i
+ }
+ return fib(i-1) + fib(i-2)
+}
+
+func countFilesInDir(dirPath string) int {
+ files, err := os.ReadDir(dirPath)
+ if err != nil {
+ return 0
+ }
+ return len(files)
+}