package user import ( "context" "testing" "github.com/perfect-panel/server/internal/svc" "github.com/perfect-panel/server/internal/types" ) func TestUnbindDevice_MissingUserContext(t *testing.T) { l := NewUnbindDeviceLogic(context.Background(), &svc.ServiceContext{}) err := l.UnbindDevice(&types.UnbindDeviceRequest{Id: 1}) if err == nil { t.Fatalf("expected error when user context missing") } }