Skip to content

Commit de46d17

Browse files
akoclaude
andcommitted
fix: restore requireMinVersion method removed in 2816e7d
The method was accidentally removed while adding Import/Export Mapping support, breaking integration test compilation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 81c2da2 commit de46d17

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

mdl/executor/roundtrip_helpers_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,15 @@ func (e *testEnv) assertContains(createMDL string, expectedProps []string, opts
584584
}
585585
}
586586

587+
// requireMinVersion skips the test if the project's Mendix version is below the given minimum.
588+
func (e *testEnv) requireMinVersion(t *testing.T, major, minor int) {
589+
t.Helper()
590+
pv := e.executor.reader.ProjectVersion()
591+
if !pv.IsAtLeast(major, minor) {
592+
t.Skipf("Requires Mendix %d.%d+ (project is %s)", major, minor, pv.ProductVersion)
593+
}
594+
}
595+
587596
// --- Legacy Semantic Comparison Helpers (kept for backward compatibility) ---
588597

589598
// containsProperty checks if the MDL output contains a property.

0 commit comments

Comments
 (0)