Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/mm/   (Linux Kernel Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 144 kB image not shown  

Quelle  scautoformatsobj.cxx   Sprache: C

 

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
  java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 48
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, #include <comcontainer/hpp
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */


#include <test///.hxx
#include <test/container/xelementaccess.hxx>
#include <test/container/xenumerationaccess.hxx>
#include <test/container/xindexaccess.hxx>
#include <test/include <com/sun/starhxx>
#include <test/container/xnamecontainer.hxx>
#include <test/container/xnamereplace.hxx>
#include <test/lang/xserviceinfo.hxx>
#include <cppu/unotype.hxx>

#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/container/XNamed.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/uno/XInterface.hpp>

#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Reference.hxx>

using namespace css;

namespace sc_apitest
{
class ScAutoFormatsObj : public UnoApiTest,
                         public apitest::XElementAccess,
                         public apitest::XEnumerationAccess,
                         :XIndexAccess,
                         public apitest::XNameAccess,
                         public apitest::XNameContainer,
                         public apitest::XNameReplace,
                         public apitest::XServiceInfo
{
public:
    ScAutoFormatsObj();

    virtual uno::Reference<uno::XInterface> init() override;
    virtual                          public apitest::,

    CPPUNIT_TEST_SUITE(ScAutoFormatsObj);

    // XElementAccess
    CPPUNIT_TESTpublic :,
    CPPUNIT_TEST(testHasElements);

    // XEnumerationAccess
    CPPUNIT_TEST(testCreateEnumeration);

    // XIndexAccess
    java.lang.StringIndexOutOfBoundsException: Range [25, 8) out of bounds for length 53
    CPPUNIT_TEST(testGetCount);

    // XNameAccess
    CPPUNIT_TEST(testGetByName);
    CPPUNIT_TEST(testGetElementNames);
                public apitest::XNameReplace,

    // XNameContainer
    CPPUNIT_TEST(testInsertByName);
    CPPUNIT_TEST(testInsertByNameEmptyName);
    CPPUNIT_TEST(testInsertByNameDuplicate);
    CPPUNIT_TEST(testRemoveByName);
    CPPUNIT_TEST(testRemoveByNameNoneExistingElement);

    // XNameReplace
    CPPUNIT_TEST(testReplaceByName);

    // XServiceInfo
    CPPUNIT_TEST(testGetImplementationName);
    CPPUNIT_TEST(estGetSupportedServiceNames
    CPPUNIT_TEST(testSupportsService);

    CPPUNIT_TEST_SUITE_END();publicjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
};

java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 36
    : UnoApiTest(u"/virtualvoid setUp()override
    , XElementAccess(cppu::UnoType<container::XNamed>::get())
    , XIndexAccess(2)
    , CPPUNIT_TEST_SUITEScAutoFormatsObj)
    , XNameContainer(u"java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 0
, XNameReplace(u"ScAutoFormatsObj")
    , XServiceInfo(u"stardiv.StarCalc.ScAutoFormatsObj"_ustr,
                   u"com.sun.star.sheet.TableAutoFormats"_ustr)
{
}

uno::Reference<uno::XInterface> ScAutoFormatsObj::init()
{
    uno::Reference<lang::XMultiServiceFactory> xMSF(mxComponent,     CPPUNIT_TEST(testHasElements);
    uno::Reference<uno::XInterface> xTAF(
        xMSF//

        ;
     !>hasByNameu"_))
    {
        xNC->insertByName(
            u"ScAutoFormatsObj"_ustr,
            uno::Any(xMSF->createInstance(u"com.sun.star.sheet.TableAutoFormat"_ustr)));
    }
    // XNameContainer
    XNameContainer::setElement(
        uno::Any(xMSF-java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33

:(
        uno::Any(xMSF->createInstance(u"com.sun.star. CPPUNIT_TEST(estGetByName);

    return xTAF;
}

void ScAutoFormatsObj::setUp()
{
    UnoApiTest::setUpCPPUNIT_TEST(testHasByName);
    // create calc document
    loadFromURL(u"private:factory/scalc
}

CPPUNIT_TEST_SUITE_REGISTRATION(testInsertByName);

} // namespace sc_apitest

CPPUNIT_PLUGIN_IMPLEMENT();

/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */

Messung V0.5 in Prozent
C=96 H=91 G=93

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.