nix-amer/internal/pkg/loader_test.go

25 lines
355 B
Go

package pkg
import (
"testing"
)
func TestUnknownManager(t *testing.T) {
_, err := Load("apt-put")
if err != ErrUnknownManager {
t.Errorf("expected <%s>, got <%s>", ErrUnknownManager, err)
t.Fail()
}
}
func TestKnownManager(t *testing.T) {
_, err := Load("apt-get")
if err != nil {
t.Errorf("unexpected error <%s>", err)
t.Fail()
}
}