import Foundation import Testing @testable import SprachmittlerOllama @Suite("Warm-up policy") struct OllamaWarmUpPolicyTests { @Test func allowsOnlyEnabledLoopbackEndpoints() throws { let local = try #require(URL(string: "http://127.0.0.1:11434")) let remote = try #require(URL(string: "https://example.com:11434")) #expect(OllamaWarmUpPolicy.shouldWarmUp(endpoint: local, enabled: true)) #expect(!OllamaWarmUpPolicy.shouldWarmUp(endpoint: local, enabled: false)) #expect(!OllamaWarmUpPolicy.shouldWarmUp(endpoint: remote, enabled: true)) } }