Skip to content

Commit

Permalink
add Farm test, maximize coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
presbrey committed Aug 25, 2024
1 parent c624f79 commit 92203d2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions farm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,11 @@ func TestFarmMethods(t *testing.T) {
t.Errorf("Expected 2 llamas, got %d", len(llamas))
}
})

t.Run("TestOllamaFarm", func(t *testing.T) {
llama := farm.First(&ollamafarm.Where{Group: "group1"})
if llama.Farm() != farm {
t.Error("Expected farm, got nil")
}
})
}

0 comments on commit 92203d2

Please sign in to comment.