Skip to content

Commit

Permalink
Fixed lint errors in test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasb committed Dec 28, 2024
1 parent 315def0 commit 56c7c7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llms/mistral/mistralembed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
sdk "github.com/tmc/langchaingo/llms/mistral"
)

// TestConvertFloat64ToFloat32 tests the ConvertFloat64ToFloat32 function

Check failure on line 14 in llms/mistral/mistralembed_test.go

View workflow job for this annotation

GitHub Actions / Lint

Comment should end in a period (godot)
func TestConvertFloat64ToFloat32(t *testing.T) {

Check failure on line 15 in llms/mistral/mistralembed_test.go

View workflow job for this annotation

GitHub Actions / Lint

calculated cyclomatic complexity for function TestConvertFloat64ToFloat32 is 13, max is 12 (cyclop)

// Test case 1: Empty slice
input := []float64{}
output := sdk.ConvertFloat64ToFloat32(input)
Expand Down Expand Up @@ -55,6 +55,7 @@ func TestConvertFloat64ToFloat32(t *testing.T) {
}

func TestMistralEmbed(t *testing.T) {
t.Parallel()
envVar := "MISTRAL_API_KEY"

// Get the value of the environment variable
Expand Down

0 comments on commit 56c7c7e

Please sign in to comment.