1package ollama
2
3import (
4 "testing"
5)
6
7func TestIsInstalled(t *testing.T) {
8 installed := IsInstalled()
9
10 if installed {
11 t.Log("✓ Ollama is installed on this system")
12 } else {
13 t.Log("✗ Ollama is not installed on this system")
14 }
15
16 // This test doesn't fail - it's informational
17 // In a real scenario, you might want to skip other tests if Ollama is not installed
18}
19
20// Benchmark test for IsInstalled
21func BenchmarkIsInstalled(b *testing.B) {
22 for i := 0; i < b.N; i++ {
23 IsInstalled()
24 }
25}