mirror of
https://github.com/ollama/ollama.git
synced 2026-02-20 08:16:07 -05:00
20 lines
354 B
Go
20 lines
354 B
Go
package config
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestErrCancelled(t *testing.T) {
|
|
t.Run("NotNil", func(t *testing.T) {
|
|
if errCancelled == nil {
|
|
t.Error("errCancelled should not be nil")
|
|
}
|
|
})
|
|
|
|
t.Run("Message", func(t *testing.T) {
|
|
if errCancelled.Error() != "cancelled" {
|
|
t.Errorf("expected 'cancelled', got %q", errCancelled.Error())
|
|
}
|
|
})
|
|
}
|