File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,9 +59,11 @@ func TestDescribeJavaAction_Mock(t *testing.T) {
5959}
6060
6161// NOTE: listJavaActions has no explicit not-connected guard. It calls
62- // getHierarchy (returns nil when disconnected) then proceeds to call
63- // ListJavaActions on the backend. The handler degrades gracefully —
64- // with an empty result set it succeeds with a nil hierarchy.
62+ // getHierarchy (which returns nil when disconnected) and is intended to
63+ // be reached through execShow, which enforces a connected backend first.
64+ // A nil hierarchy is only harmless when the backend returns no Java
65+ // actions; if Java actions are returned while disconnected, dereferencing
66+ // the nil hierarchy would panic.
6567
6668func TestShowJavaActions_BackendError (t * testing.T ) {
6769 mod := mkModule ("MyModule" )
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ import (
1111// NOTE: The full Check() logic requires ctx.Reader().GetMicroflow() to read microflow
1212// positions from a real MPR file. The overlap detection algorithm (collect positions →
1313// pairwise distance check) is inline in Check() and cannot be unit-tested without
14- // building a mock mpr.Reader. Covered by integration tests (roundtrip_*.go).
14+ // building a mock mpr.Reader. This rule currently lacks end-to-end coverage;
15+ // behavioral testing requires a real .mpr project with overlapping activities.
1516
1617func TestOverlappingActivitiesRule_NilReader (t * testing.T ) {
1718 r := NewOverlappingActivitiesRule ()
You can’t perform that action at this time.
0 commit comments