summaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-02-25 21:02:58 +0300
committerGrail Finder <wohilas@gmail.com>2026-02-25 21:02:58 +0300
commitb97cd67d729e60d63c87590584d5d21e4603fafd (patch)
treedf7809eea89f5426bff00a34e6dcaeebae4e8f2e /models
parent888c9fec652b82174702c710f54f7d64f194315c (diff)
Chore: noblanks complaints
Diffstat (limited to 'models')
-rw-r--r--models/models_test.go6
-rw-r--r--models/openrouter_test.go1
2 files changed, 0 insertions, 7 deletions
diff --git a/models/models_test.go b/models/models_test.go
index 5f0a4f4..3b6476a 100644
--- a/models/models_test.go
+++ b/models/models_test.go
@@ -1,10 +1,8 @@
package models
-
import (
"strings"
"testing"
)
-
func TestRoleMsgToTextWithImages(t *testing.T) {
tests := []struct {
name string
@@ -92,7 +90,6 @@ func TestRoleMsgToTextWithImages(t *testing.T) {
expected: "[orange::i][image: /old/path/photo.jpg][-:-:-]",
},
}
-
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
result := tt.msg.ToText(tt.index)
@@ -110,12 +107,10 @@ func TestRoleMsgToTextWithImages(t *testing.T) {
})
}
}
-
func TestExtractDisplayPath(t *testing.T) {
// Save original base dir
originalBaseDir := imageBaseDir
defer func() { imageBaseDir = originalBaseDir }()
-
tests := []struct {
name string
baseDir string
@@ -153,7 +148,6 @@ func TestExtractDisplayPath(t *testing.T) {
expected: "..._that_exceeds_sixty_characters_limit_yes_it_is_very_long.jpg",
},
}
-
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
imageBaseDir = tt.baseDir
diff --git a/models/openrouter_test.go b/models/openrouter_test.go
index dd38d23..63990b6 100644
--- a/models/openrouter_test.go
+++ b/models/openrouter_test.go
@@ -62,7 +62,6 @@ func TestORModelsListModels(t *testing.T) {
t.Errorf("expected 4 total models, got %d", len(allModels))
}
})
-
t.Run("integration with or_models.json", func(t *testing.T) {
// Attempt to load the real data file from the project root
path := filepath.Join("..", "or_models.json")