golden tests are back

This commit is contained in:
2026-06-09 02:56:53 +02:00
parent 7643c2fc07
commit ba1b083dcb
37 changed files with 1935 additions and 96 deletions

View File

@@ -0,0 +1,29 @@
digraph statemachine {
rankdir=LR;
node [shape=rounded, style=filled, fillcolor=white, fontname="Arial"];
edge [fontname="Arial", fontsize=10];
SUBMITTED_choice [shape=diamond, label="", fillcolor="blue", width=0.2, height=0.2];
SUBMITTED -> SUBMITTED_choice [style=dotted, color="blue"];
PAID_choice [shape=diamond, label="", fillcolor="green", width=0.2, height=0.2];
PAID -> PAID_choice [style=dotted, color="green"];
_start [shape=circle, label="", fillcolor=black, width=0.1];
_start -> SUBMITTED;
CANCELED [fillcolor=lightgray];
FULFILLED [fillcolor=lightgray];
SUBMITTED -> PAID [label="OrderEvents.PAY", style="solid", color="black"];
PAID -> FULFILLED [label="OrderEvents.FULFILL", style="solid", color="black"];
SUBMITTED -> CANCELED [label="OrderEvents.CANCEL [λ]", style="solid", color="black"];
PAID -> CANCELED [label="OrderEvents.CANCEL", style="solid", color="black"];
SUBMITTED -> SUBMITTED [label="OrderEvents.ABCD", style="solid", color="black"];
SUBMITTED_choice -> PAID2 [label="[λ] (order=0)", style="solid", color="blue"];
SUBMITTED_choice -> PAID3 [label="(order=1)", style="solid", color="blue"];
PAID_choice -> PAID1 [label="[λ] (order=0)", style="solid", color="green"];
PAID_choice -> PAID2 [label="[guard1] (order=1)", style="solid", color="green"];
PAID_choice -> HAPPEN [label="[λ] (order=2)", style="solid", color="green"];
PAID_choice -> PAID3 [label="(order=3)", style="solid", color="green"];
PAID2 -> CANCELED [style="solid", color="black"];
PAID3 -> CANCELED [style="solid", color="black"];
PAID1 -> PAID1 [label="OrderEvents.ABCD / λ, action2", style="solid", color="black"];
}

View File

@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" initial="SUBMITTED">
<state id="PAID1">
<transition target="PAID1" event="OrderEvents.ABCD"/>
</state>
<state id="SUBMITTED">
<transition target="PAID" event="OrderEvents.PAY"/>
<transition target="CANCELED" event="OrderEvents.CANCEL" cond="λ"/>
<transition target="SUBMITTED" event="OrderEvents.ABCD"/>
<transition target="PAID2" cond="λ">
<!-- order=0 -->
</transition>
<transition target="PAID3">
<!-- order=1 -->
</transition>
</state>
<state id="PAID">
<transition target="FULFILLED" event="OrderEvents.FULFILL"/>
<transition target="CANCELED" event="OrderEvents.CANCEL"/>
<transition target="PAID1" cond="λ">
<!-- order=0 -->
</transition>
<transition target="PAID2" cond="guard1">
<!-- order=1 -->
</transition>
<transition target="HAPPEN" cond="λ">
<!-- order=2 -->
</transition>
<transition target="PAID3">
<!-- order=3 -->
</transition>
</state>
<state id="CANCELED">
</state>
<state id="FULFILLED">
</state>
<state id="PAID3">
<transition target="CANCELED"/>
</state>
<state id="HAPPEN">
</state>
<state id="PAID2">
<transition target="CANCELED"/>
</state>
</scxml>