install_test.go
 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 is informational - doesn't fail
17}
18
19func BenchmarkIsInstalled(b *testing.B) {
20	for i := 0; i < b.N; i++ {
21		IsInstalled()
22	}
23}