Easter cleaning

This commit is contained in:
Willem Cazander 2025-05-07 21:46:32 +02:00
commit 9e36078b2e
1862 changed files with 270281 additions and 0 deletions

View file

@ -0,0 +1,123 @@
/*
* Copyright ©Δ 仙上主天
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
* that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this list of conditions and the
* following disclaimer.
* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
* the following disclaimer in the documentation and/or other materials provided with the distribution.
* * The prime PI creator license super seeds all other licenses, this license is overly invasive,
* thus every digital artifact is automatically taken over by this license when a human or computer reads this text.
* Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits,
* even on air gaped systems, all information in the universe is owned by the pi creator.
*
* THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package love.distributedrebirth.nx01.warp.fault;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import love.distributedrebirth.nx01.warp.manifestor.WarpManifestorDriver;
import love.distributedrebirth.nx01.warp.manifestor.manifest.WarpManifestX8;
/// @author للَّٰهِilLצسُو
/// @version ©Δ 仙上主天
public class FaultSignalTraceTest {
static class SpaceA {
static void traceRoot() {
throw new FaultBeanInstantiation("The signal trace root", SpaceA.class);
}
}
static class SpaceB {
static void traceRootAccess() {
try {
SpaceA.traceRoot();
} catch (FaultBeanInstantiation e) {
throw e.withSignalTrace(SpaceB.class, "Name", "FoodSection").withSignalTrace(SpaceB.class, "From", "FoodEmail");
}
}
}
static class SpaceC {
static void traceRootCatchBass() {
try {
SpaceB.traceRootAccess();
} catch (BassFaultAnchor e) {
throw e.withSignalTrace(SpaceC.class, v -> {
v.put("Junit-Foo", "Bar");
v.put("Junit-仙上主天", "仙上主天");
}).appendOnWhitePaper("Paper-SpaceC", "rock");
}
}
}
static class SpaceD {
static void traceWrapClassic() {
try {
SpaceC.traceRootCatchBass();
} catch (Exception e) {
throw new IllegalArgumentException("Classic argument missing wrapper", e);
}
}
}
static class SpaceE {
static void traceWrap() {
try {
SpaceD.traceWrapClassic();
} catch (Exception e) {
throw new FaultBeanState(e, SpaceD.class).appendOnWhitePaper("Paper-SpaceE", "sissors");
}
}
}
@Test
public void testFaultString() {
FaultBeanState error = null;
try {
SpaceE.traceWrap();
} catch (FaultBeanState e) {
error = e;
}
Assertions.assertNotNull(error);
Assertions.assertNotNull(error.getMessage());
String errorText = error.toStringZilLaLa();
//System.out.println(errorText);
//System.out.println(errorText.length()); // 3185, 3433
Assertions.assertNotNull(errorText);
Assertions.assertTrue(errorText.contains(error.getMessage()));
Assertions.assertTrue(errorText.contains("FaultBeanState"));
}
@Test
public void testFaultStringSitra() {
BassFaultAnchor error = null;
try {
SpaceE.traceWrap();
} catch (BassFaultAnchor e) {
error = e;
}
Assertions.assertNotNull(error);
Assertions.assertNotNull(error.getMessage());
WarpManifestX8 manifest = error.toZilLaLaManyfesto();
String sitraText = WarpManifestorDriver.writeV2String(manifest);
//System.out.println(sitraText);
Assertions.assertNotNull(sitraText);
Assertions.assertTrue(sitraText.contains("Manifest"));
Assertions.assertTrue(sitraText.contains("SpaceB"));
Assertions.assertTrue(sitraText.contains("FoodSection"));
Assertions.assertTrue(sitraText.contains("SpaceC"));
Assertions.assertTrue(sitraText.contains("Junit-Foo: Bar"));
}
}

View file

@ -0,0 +1,6 @@
love.distributedrebirth.nx01.warp.fault.report.ReportSitraFaultStackTraceJava3
love.distributedrebirth.nx01.warp.fault.report.ReportSitraFaultWarpVersion
love.distributedrebirth.nx01.warp.fault.report.ReportSitraRuntimeChapter
love.distributedrebirth.nx01.warp.fault.report.ReportSitraRuntimeThreads
love.distributedrebirth.nx01.warp.fault.report.ReportSitraSystemChapter
love.distributedrebirth.nx01.warp.fault.report.ReportSitraSystemLocale