Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/python/mozbuild/mozbuild/test/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 858 B image not shown  

Quelle  test_legacy_test.py

  Sprache: Python
 

# Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/

import buildconfig
import mozunit
import mozversioncontrol

# List of moz.build that currently hold a LegacyTest
# *Don't touch that dial!*

allowlist = {
    "ipc/ipdl/test/ipdl/moz.build",
    "js/src/moz.build",
    "js/src/build/moz.build",
    "memory/replace/logalloc/replay/moz.build",
    "toolkit/xre/test/win/moz.build",
}


def test_extra_legacy_tests():
    repo = mozversioncontrol.get_repository_object(buildconfig.topsrcdir)
    for src, fd in repo.get_tracked_files_finder().find("**/moz.build"):
        if src in allowlist:
            continue
        assert b"LegacyTest(" not in fd.read(), (
            f"LegacyTest used in {src}, please refrain and use another test kind."
        )


if __name__ == "__main__":
    mozunit.main()

Messung V0.5 in Prozent
C=91 H=95 G=92

¤ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© 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.