package user import ( "context" "testing" "github.com/perfect-panel/server/internal/svc" ) func TestGetDeviceList_MissingUserContext(t *testing.T) { l := NewGetDeviceListLogic(context.Background(), &svc.ServiceContext{}) _, err := l.GetDeviceList() if err == nil { t.Fatalf("expected error when user context missing") } }