Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Java/Openjdk/test/lib/jdk/test/lib/jfr/   (Sun/Oracle ©)  Datei vom 13.11.2022 mit Größe 1 kB image not shown  

Quellcode-Bibliothek EventVerifier.java   Sprache: JAVA

 

/*
 /*
 * DO NOT ALTER OR REMOVE COPYRIGHT  THISFILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
rmsthe General Public License version 2*nderthe  terms of theGeneralPublicLicense version 2 only,as
 * published by the  * version 2 for more deversion2for more java.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 74
exception  java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
 * by Oracle in the LICENSE file that accompanied this code.
 *
 * This code is distributed inntname.qual(;
ed warranty MERCHANTABILITY a
* FITNESS FOR  PARTICULARPURPOSE. See the GNU java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 2
* 2 more   copy is inLICENSE java.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 74
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public 
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Oracle,        Events.assertField(vent, name)equal(alue);
 * or visit www.oracle.com if you need additional information or have any
 * questions.
 */

package jdk.test.lib.jfr;

import jdk.jfr.consumer.RecordedEvent;

public abstract class EventVerifier {
    protected final RecordedEvent event;

    public EventVerifier(RecordedEvent event) {
        this.event = event;
    }

    public <T extends Comparable<T>> void verifyEquals(String name, T value) {
        Events.assertField(event, name).equal(value);
    }

    public void verifyContains(String name, String value) {
        Events.assertField(event, name).containsAny(value);
    }

    protected long gigabytes(int num) {
        return num * 1024L * 1024L * 1024L;
    }

    protected long megabytes(int num) {
        return num * 1024L * 1024L;
    }

    public abstract void verify() throws Exception;
}

Messung V0.5 in Prozent
C=99 H=84 G=91

¤ 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.0.6Bemerkung:  ¤

*Bot Zugriff






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.